Mac Help Forums


Reply
Thread Tools Display Modes

Audio Playback Control

 
New Member
Join Date: Mar 2006
Posts: 1
 
      5th March 2006
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
 
Reply With Quote
 
 
 
 
Ric Ric is offline
Senior Member
Ric's Avatar
Join Date: May 2004
Posts: 4,260
 
      5th March 2006
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
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Playback of audio book track stops abruptly on Ipod Shuffle 2G bpwrlc@earthlink.net Apps 1 28th January 2007 12:23 PM
Using Realplayer to playback maccast mp3 files - remembering playback position? roger.valentine@yahoo.com UK Macs 4 11th September 2006 11:46 AM
Freeware app to record audio playback learner Apps 2 12th June 2005 11:50 AM
Audio playback app needed Eric Desrochers Mac 3 28th August 2004 05:38 AM
Final Cut Express: Playback Has No Audio Rob Williams Apps 1 22nd December 2003 02:45 PM


All times are GMT +1. The time now is 09:33 PM.
Mac-Help.com is an independent website and is not affiliated with Apple Inc.


Welcome!
Welcome to the Mac Help Forums
 


Latest Threads
Yikes! Teacher needs help!
Mollyc4627 (36 Minutes Ago, 08:57 PM)

Unable to log in to websites
AMonty20 (3 Hours Ago, 05:52 PM)

Add Different Speech Commands
bae_22 (4 Hours Ago, 04:40 PM)

Login (2 macs) passwords spontaniously changed?
Roger Vaught (6 Hours Ago, 03:31 PM)

Best car charger or inverter for Macbook Pro?
imeme87 (6 Hours Ago, 03:22 PM)

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51