How to copy\paste a task?

3,104 views
Skip to first unread message

Andrey Petrychak

unread,
Oct 12, 2011, 4:18:52 PM10/12/11
to Tasker
Hi! I have a task. I need to copy/paste it. How can i do that?

strictlyrude27

unread,
Oct 12, 2011, 4:34:57 PM10/12/11
to tas...@googlegroups.com
Name the task; now it's reusable in several different profiles. 

Oon-Ee Ng

unread,
Oct 13, 2011, 12:25:46 AM10/13/11
to tas...@googlegroups.com
Doesn't do the same thing though, since all of them are now linked, a
change in task A for profile 1 changes task A in profile 2.

Plus, its not possible to un-name AFAIK.

V Oz

unread,
Oct 13, 2011, 3:31:06 AM10/13/11
to tas...@googlegroups.com
You can export task, rename in file it and import back :)

Pent

unread,
Oct 13, 2011, 5:17:38 AM10/13/11
to Tasker
> You can export task, rename in file it and import back :)

That's almost literally thinking out of the box :-)

Pent

Oon-Ee Ng

unread,
Oct 13, 2011, 5:19:54 AM10/13/11
to tas...@googlegroups.com
How I did it is similar though, export, rename the current instance,
and then import the file again. Would rather not exit tasker to do
this, after all.

Andrii Pacific

unread,
Oct 13, 2011, 11:26:04 AM10/13/11
to Tasker
I have tried to export\import. Doesn't work.
What I did:

1. Picked task (for example "mytask")
2. Export
3. Goto filebrowser (/sdcard/Tasker/tasks/)
4. Copy the "mytask". I had file name like "mytask.tsk.xml"
5. Copy\paste "mytask" to another folder.
6. Rename to "mytask1.tsk.xml"
7. Copy "mytask1.tsk.xml" to (/sdcard/Tasker/tasks/)
7. Goto "tasker"
8. "Profile data"=>Import one task=>"mytask1.tsk.xml"

And I have "Error task name already exist".
No new tasks are added.

What do I do wrong?

Andrii Pacific

unread,
Oct 13, 2011, 11:41:40 AM10/13/11
to Tasker
Yeah, got it!
I hade to rename the taskname INSIDE the file (using file editor)
Find smth like <nme>mytask</nme> and rename to <nme>mytask1</nme>

Not that user-friendly ;)

SOLVED, thx to all!!!!!

BossMan

unread,
Oct 13, 2011, 11:42:42 AM10/13/11
to tas...@googlegroups.com
Obviously you missed this bit:

>> rename in file it <<

Open the xml file in some editor and change the task name inside.

BR,
A.

V Oz

unread,
Oct 14, 2011, 3:01:05 AM10/14/11
to tas...@googlegroups.com
Heh... when I wrote this recipe, I've NOT did it before :) It was assumed.
Yeap. Ok. It works. Now those who wants more friendly recipe make next steps:
1) Make task "XML-Parser-Substituter :)"
 some kind of cycle (for, while ...) through LINES
 A1) File -> Read Line from file (name in %par1)
 A2) If tag is <nme> </nme> -> Replace text inside tag with %par2
 A3) Write Line to the New File (append) name = %par2.tsk.xml ( replace spaces in %par with underscores)

2) Run this task the way You like with appropriate parameters.

3) Debug, refine, make friendly, export, upload for Group users
4) PROFIT

V Oz

unread,
Oct 14, 2011, 3:07:47 AM10/14/11
to tas...@googlegroups.com
AFAIK, developers todo list is too long for making features, that can't be done with features realized yet.
there are enough File actions for such simple and rare aim. You have not to be programmer. School skills enough for this.

TomL

unread,
Oct 14, 2011, 8:48:53 AM10/14/11
to Tasker
Behold, Tasker has just taken another step towards being a Von Neumann
Self-Replicating Machine.

:)

Tom
Reply all
Reply to author
Forward
0 new messages