Sounds like a job for AppleScript.

To execute the literal sequence of steps that you asked for, paste the 
following into the first pane of your QS trigger and then select the Run as 
AppleScript action in the second pane:

tell application "Amazon Music" to activate
tell application "System Events"
keystroke space
keystroke tab using {command down}
end tell

However, if the app includes an AppleScript dictionary, you can probably 
accomplish the same effect more cleanly with something like this instead:

tell application "Amazon Music"
launch
play
end tell

I don't have that app, so I don't guarantee that the latter will work as 
is. Open Script Editor and then drag the Amazon Music app's icon onto it to 
see what AppleScript commands it responds to, and then adjust as 
appropriate.

On Saturday, 26 September 2015 01:54:47 UTC-6, Jim Tuttle wrote:
>
> I'm looking for a trigger that will execute multiple actions, like 
> switching to the Amazon Music app, send the "Space" keystroke, and 
> switching back to the previous app.
>
> I can write a trigger that switches to (or launches) the Amazon Music app, 
> but I don't know how to "chain" together several actions to accomplish.
>
>
> Thanks in advance!
>    Jim
>

-- 
You received this message because you are subscribed to the Google Groups 
"Quicksilver" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/blacktree-quicksilver.
For more options, visit https://groups.google.com/d/optout.

Reply via email to