Skip to content

Instantly share code, notes, and snippets.

@bayleedev
Created August 22, 2016 18:36
Show Gist options
  • Save bayleedev/0d24f0224c11d54f033c2837ffc34f2e to your computer and use it in GitHub Desktop.
Save bayleedev/0d24f0224c11d54f033c2837ffc34f2e to your computer and use it in GitHub Desktop.
pandora applescript
on alfred_script(q)
set old to (path to frontmost application as text)
tell application "Pandora"
reopen
activate
end tell
tell application "System Events"
keystroke "-"
end tell
activate application old
end alfred_script
on alfred_script(q)
set old to (path to frontmost application as text)
tell application "Pandora"
reopen
activate
end tell
tell application "System Events"
keystroke space
end tell
activate application old
end alfred_script
on alfred_script(q)
set old to (path to frontmost application as text)
tell application "Pandora"
reopen
activate
end tell
tell application "System Events"
keystroke (ASCII character 29)
end tell
activate application old
end alfred_script
on alfred_script(q)
set old to (path to frontmost application as text)
tell application "Pandora"
reopen
activate
end tell
tell application "System Events"
keystroke "+"
end tell
activate application old
end alfred_script
@bayleedev
Copy link
Author

Maybe find the pandora app locally, open it using open file

then use robotjs to hit space/+/-/left

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment