Hi,

I am trying to get the details of current track being played in iTunes
from cocoa application. I am using ScriptingBridge
by generating iTunes from the command line using

The Applescript which i have successfuly tested in ScriptEditor is

tell application "iTunes"
        set strSongTitle to (get name of current track)
        set strSongAuthor to (get artist of current track)
        set songClass to (class of current track)
        set currentPlayPosition to (player position)
        if songClass is URL track then
                set playURL to (get address of current track)
                set nCurrentTrackLengthInSeconds to (0)
        else
                set playURL to (get location of current track)
                set nCurrentTrackLengthInSeconds to (get duration of current 
track)
        end if
        set state to (get player state)
end tell

I am not sure why the currentStreamURL property of
iTunesApplication:SBApplication is returning nil?
Also pushed the sample to READ+WRITE GIT which can be found at:
https://[email protected]/abhinavtyagi/iTunesCocoa.git

I dont know if i am doing somenthing wrong with this.
-- 
Abhinav

--One who asks is seen as a fool, the one who doesnt asks remain a fool forever
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to