How about something like this:
Profile PandoraStart
- context: app Pandora
- entry task: action Alert->PopupTaskNames, with tasks names "yes" and
"no"
Go to "tasks" (button at the bottom) and create two tasks:
- task "yes": action Variable Set SLEEPTIMER = 1
- task "no": action Stop (it's just a dummy task - you can safely omit
it if you want)
Profile PandoraTimer
- context: state Variable: SLEEPTIMER is set
// for entry task: in the properties and set "keep device awake"
- entry task: action Tasker->Wait xxx minutes
- entry task: action Variable Clear SLEEPTIMER
- exit task: action App->KillApp, Pandora
Have not tested this, but it's possible it will work.
You could also achieve that using calender event instead of "wait",
but let's start with "wait" first.
Note: if you're on Froyo it may not work for you, as the "Kill App"
action may not work.
BR,
A.