Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Another Nifty Trick' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Another Nifty Trick
Authored by: jdurchen on Feb 27, '03 02:30:00PM

Since I play my music from my iPod and my library is on my home
computer I can't use iTunes. I went ahead and changed the scripts to
work with Audion like they do with iTunes(A much better mp3 player
than iTunes btw until they can at lease support mp3pro and let me play
directly from my iPod. I am not holding my breath on the last one).

Also since the screen saver only starts once you leave proximity, and it
only checks this periodically, it can take 30 seconds for this to activate
once I walk away, I wanted a more immediate activation, so I added
additional logic to the pause script such that if it is already paused when
I select it, it will automatically start the screen saver. So two pauses and
it starts.

iTunes: Play
tell application "Audion 3"
if get status of control window 1 is paused then
tell application "Audion 3"
play in control window 1
end tell
end if
end tell

iTunes: Pause
tell application "Audion 3"
if get status of control window 1 is not paused then
tell application "Audion 3"
play in control window 1
end tell
else
tell application "ScreenSaverEngine"
activate
end tell
end if
end tell

iTunes: Previous
tell application "Audion 3"
previous track control window 1
end tell

iTunes: Next
tell application "Audion 3"
next track control window 1
end tell



[ Reply to This | # ]
RE: Another Nifty Trick
Authored by: xyz3 on Feb 27, '03 10:26:48PM

Why not activate the screen saver - then mess with iTunes, etc..

tell application "ScreenSaverEngine"
activate
end tell

delay 5

tell application "iTunes"
pause
end tell



[ Reply to This | # ]