Re: Get the latest song pathname played by iTunes
Re: Get the latest song pathname played by iTunes
- Subject: Re: Get the latest song pathname played by iTunes
- From: Mario Diana <email@hidden>
- Date: Sun, 18 Jul 2004 09:47:21 -0400
On Sunday, July 18, 2004, at 08:05 AM, Dominik Pich wrote:
AppleScript!?
I don't know much about AppleScript, but I managed to work out
something like this:
tell application "iTunes"
set purchasedMusic to playlist "Purchased Music" of application
"iTunes"
set musicList to file tracks of purchasedMusic as list
set pathString to ""
repeat with aTune in musicList
set theLocation to location of aTune
set pathString to pathString & return & theLocation
end repeat
set pathList to lines of pathString as list
end tell
Wow! I don't even know what to say. The Cocoa Java/Objective-C hybrid
application I'm writing is close to its 1.0 release, and now I'm
wondering if the whole thing couldn't have been done as an AppleScript
application in Cocoa.
Thanks for the heads up! Maybe it's time I took a good look at
AppleScript.
Mario
=======================================================
Mario Diana Mobile: 845-380-8428
50 Forest Drive Home: 845-221-3989
Poughquag, NY 12570 Email: email@hidden
=======================================================
Programmer - Web development, Java, XML, LAMP, Mac OS X
=======================================================
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.