Hi sbooth,
Just wondering what your notifications are? Trying to hook into them...
iTunes sends 'com.apple.iTunes.playerInfo' but Play seems to send nothing of the sort (according to NotificationWatcher) - it only sends 'GrowlNotification' and that is only when the track changes, not on a play or pause... or am I missing something?
Also... I can't see how to get the player position in the Apple Script Dictionary for Play - what is the equivalent of iTunes player_position?
Regards,
Steve
NSDistributedNotificationCenter...
-
- Posts: 8
- Joined: Fri May 23, 2008 3:33 pm
Re: NSDistributedNotificationCenter...
I found what I guess the notification *should* be:
org.sbooth.Play.playerInfo
but this doesnt seem to get broadcast...
BTW: Console says:
Bad _contents: nan
when it starts playing.
org.sbooth.Play.playerInfo
but this doesnt seem to get broadcast...
BTW: Console says:
Bad _contents: nan
when it starts playing.
-
- Posts: 8
- Joined: Fri May 23, 2008 3:33 pm
Re: NSDistributedNotificationCenter...
Disregard all that... I realise its only available in 1077 and I was using 1071!
Sorry
BUT
Still not sure how to get player position?!
-S
Sorry

BUT
Still not sure how to get player position?!
-S
Re: NSDistributedNotificationCenter...
Do you want to get the position via AppleScript or via a Cocoa API?
-
- Posts: 8
- Joined: Fri May 23, 2008 3:33 pm
Re: NSDistributedNotificationCenter...
Either would be awesome... I'm using appscript as I'm writing a Python-Cocoa app, but if there is a nice way to do it via Cocoa that would be grand.