|
|
Open Front Row With Currently Playing iTunes Song
|
|
|
|
ncmason
|
|
I have set up a simple iTunes script where iTunes will open up and play my main library. I would like to make Front Row open up with the currently playing song. Any suggestions on an Applescript to make this work?
(
Last edited by ncmason; Feb 27, 2007 at 05:37 PM.
)
|
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Oct 2001
Location: London
Status:
Offline
|
|
requires 'enable access for assistive devices' checkbox to be ticked in the 'Universal Access' pref pane.
[codex]
tell application "System Events"
-- Command Esc. to start Front Row
key code 53 using command down
-- wait for Front Row to be ready for keyboard input
delay 4
-- Press Return twice (Music -> currently playing)
key code 36
key code 36
end tell
[/codex]
|
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Oct 2001
Location: London
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
ncmason
|
|
Hey, thanks so much for the feedback.
Here is my script that I made:
tell application "iTunes"
play playlist "music"
end tell
How exactly do I apply the script you made with mine?
Thanks,
Mason
|
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Oct 2001
Location: London
Status:
Offline
|
|
If I understand correctly what you want, then you just need to put your part of the script first then mine:
e.g.
[codex]
tell application "iTunes"
play playlist "music"
end tell
tell application "System Events"
-- Command Esc. to start Front Row
key code 53 using command down
-- wait for Front Row to be ready for keyboard input
delay 4
-- Press Return twice (Music -> currently playing)
key code 36
key code 36
end tell
[/codex]
|
|
|
|
|
|
|
|
|
ncmason
|
|
Thank you so much. I couldn't have done this script without you. Thanks again.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|