|May 25, 2009, 06:55 PM||#1|
Applescript: how to tell if iTunes is paused
I can get iTunes to give me the player state, it will give me a string like <constant ****kPS#>, where # is "p" for paused, "P" for playing, and "S" for stopped.
This should be cake:
set thechar to character 18 of (player state) if thechar is equal to "p" then set ispaused to true
Official MR IRC
Slow news day? Never fear, Digitimes is here. Serving up free hits for techblogs everywhere.
|May 25, 2009, 10:40 PM||#2|
I'm not entirely sure what it is you are asking..but here is how I used Applescript to check if iTunes was paused. It works without any issues..
tell application "iTunes" try set whatshappening to (get player state as string) end try if whatshappening = "paused" then return "its paused" end if end tell
Canto Pod: Get song lyrics on your iPod and iTunes, for free. (Mac + PC)
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|How to tell if Spotlight is Indexing?||zepharus||OS X||3||Nov 20, 2009 01:39 AM|
|How to tell if MBP is BRAND new or not.||jshelton||MacBook Pro||7||Jun 16, 2009 03:31 PM|
|How to tell if it is legit||nowaytobequiet||Buying Tips and Advice||5||Oct 14, 2008 04:13 PM|
|How to tell if Leopard is near gold..||rmeyer52||OS X||10||Oct 3, 2007 11:58 PM|
|(airport) how to tell if someone is leeching my bandwidth and if so stop it||poohat1000||OS X||9||Dec 11, 2005 07:07 PM|
All times are GMT -5. The time now is 12:13 PM.