Multiple tasks on profile activation with restore

856 views
Skip to first unread message

wfa...@gmail.com

unread,
Sep 21, 2011, 11:44:31 AM9/21/11
to tas...@googlegroups.com
I feel like this is bound to have been asked and answered multiple times, but I can't seem to find it.

I want to have a single profile perform multiple tasks, but I also want the previous settings to be restored when the profile exits.  Is there any way to do this, or do I have to just have multiple profiles all with the same trigger?

BossMan

unread,
Sep 21, 2011, 3:02:26 PM9/21/11
to tas...@googlegroups.com

wfa...@gmail.com

unread,
Sep 21, 2011, 3:55:55 PM9/21/11
to tas...@googlegroups.com
Thanks, but nope.

What I want is for a single profile to change two settings and for both of those settings to be restored when the profile becomes inactive.

As I understand it, a single profile cannot perform two tasks. The workaround in the FAQ is:

How can I run more than one task when a profile goes active?
Add an action Perform Task from the category Tasker for each task that you want to run (don't click the Stop button).

But it also says:

Warning:: settings in the called tasks will not be restored by Tasker, only settings changed directly within the Enter task.

But I really want one profile to change multiple settings and for them to restore when the profile becomes inactive.  Is there really no way to do this?

Scott Miller

unread,
Sep 21, 2011, 4:21:31 PM9/21/11
to tas...@googlegroups.com
Sombody else jump in here if I am way off base, but I think this is being made more complicated than it really is.
 
Create a new profile, add an enter task, then add multiple steps to that task to change the settings to what you want them to be. That's it. You don't need to create a new task for each step. The settings will revert to their prior values when the profile deactivates. If you want the settings to either remain the same, or be changed to some value different from when the profile started, then the exit task comes into play. I like to use exit tasks because then I can guarantee the setting value when the profile deactivates. Otherwise it can get confusing.

Scott


wfa...@gmail.com

unread,
Sep 21, 2011, 5:51:23 PM9/21/11
to tas...@googlegroups.com
You are totally right.  I could swear that I tried to do exactly that long ago and I couldn't find any way to get multiple things to happen in the profile.  Apparently I was being an idiot, because it was obvious when I went to look for it again.

I haven't tested my new profiles yet, but I expect they will work as intended.

Thanks.

Matthieu Berthomé

unread,
Sep 22, 2011, 4:42:46 AM9/22/11
to tas...@googlegroups.com
I guess it's important to define the terms sometimes:
A profile is : the set constituted of (a Context and one or more tasks) the tasks are enter tasks, exit tasks, if applicable (some profiles with specific contexts can't have exit tasks)
Each task is a script that executes a list of actions sequentially one after the other. There can be subtelties with Goto Actions, loops,etc, but it's still the same.
Each action does something, controlling the wifi, changing variables, interfacing with plugins, everything imaginable
Each task can be separated from the profiles in which it is used, and called in multiple profiles if needed
Each task can be called by other tasks in an action "Perform Task".
Some tasks are so simple that they need to be only one action long. But they are still tasks.
Each task can be named, or not named. 

Maybe that'll help clear up the Tasker learning curve ;-)

sayling

unread,
Sep 22, 2011, 11:26:28 AM9/22/11
to Tasker
Belter of a description, and one that should be made separately and
stickied, imho!


On Sep 22, 4:42 am, Matthieu Berthomé <matthieu.berth...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages