Hey Everyone!
Recent Mac-Convert here and still getting my head around everything, yesterday i discovered GeekTool and started "Pimping-my-desktop" with all things funky and groovy.
However, one thing i cant get to work for the life of me is whats playing on iTunes. I have dropped the code into AppleScript and run/compiled it which produces the desired result, i then drop it into an appropriate directory, drop a shell command onto the desktop and drop the location of the script in...i fire up iTunes9, press that big play button and......nothing!
For some reason the script runs great, but GeekTool cant run it for some odd reason. I have tried numerous directories and locations for the script, all with the same result, so im sure its something stupid i am doing on my-side but any help would be appreciated:
iTunes Script:
and here is the screenshot of how it looks in GeekTool:
![]()
and heres the full directory: osascript /Users/xxxxx/Scripts/Geek Tool/iTunes.scpt
Does anyone have any ideas what might be up or why i cant get it to work? As i said, no doubt it something retarded on my part, so if someone could point it out to me, awesome
Thanks,
Maxus
Recent Mac-Convert here and still getting my head around everything, yesterday i discovered GeekTool and started "Pimping-my-desktop" with all things funky and groovy.
However, one thing i cant get to work for the life of me is whats playing on iTunes. I have dropped the code into AppleScript and run/compiled it which produces the desired result, i then drop it into an appropriate directory, drop a shell command onto the desktop and drop the location of the script in...i fire up iTunes9, press that big play button and......nothing!
For some reason the script runs great, but GeekTool cant run it for some odd reason. I have tried numerous directories and locations for the script, all with the same result, so im sure its something stupid i am doing on my-side but any help would be appreciated:
iTunes Script:
Code:
on run
set info to ""
tell application "System Events"
set num to count (every process whose name is "iTunes")
end tell
if num > 0 then
tell application "iTunes"
if player state is playing then
set who to artist of current track
set what to name of current track
set onwhat to album of current track
set stars to (rating of current track) / 20 as integer
set info to quote & what & quote & " by " & who & " (" & stars & ")" & return & "from " & onwhat as string
end if
end tell
end if
return info
end run
and here is the screenshot of how it looks in GeekTool:


and heres the full directory: osascript /Users/xxxxx/Scripts/Geek Tool/iTunes.scpt
Does anyone have any ideas what might be up or why i cant get it to work? As i said, no doubt it something retarded on my part, so if someone could point it out to me, awesome
Thanks,
Maxus