Audio Playback Control

Joined
Mar 5, 2006
Messages
1
Reaction score
0
Hey

I want to be able to play whatever is open in GarageBand, iTunes and QuickTime at the same time. I've just started researching AppleScript, and it seems like I probably have to tell each of these applications to use the command to play (as if the space bar is being hit for example in all three of these programs) when the script is run.

Can anyone help me out?

Thanks

Niv
 

Ric

Joined
May 14, 2004
Messages
4,260
Reaction score
5
Hi there Niv and welcome...

You can do this via AppleScript using GUI Scripting...

activate application "QuickTime Player"
tell application "System Events"
tell process "QuickTime Player"
-- GUI Scripting statements:
keystroke space
end tell
end tell

activate application "GarageBand"
tell application "System Events"
tell process "GarageBand"
-- GUI Scripting statements:
keystroke space
end tell
end tell

activate application "iTunes"
tell application "System Events"
tell process "iTunes"
-- GUI Scripting statements:
keystroke space
end tell
end tell


For this script to run you need GUI Scripting to be turned on.



regards

Ric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top