Re: Problem with iTunes & AppleScript (1.8.3)
Re: Problem with iTunes & AppleScript (1.8.3)
- Subject: Re: Problem with iTunes & AppleScript (1.8.3)
- From: email@hidden
- Date: Fri, 28 Jun 2002 04:11:34 EDT
Try these lines:
tell application "Music:iTunes:iTunes"
set CurrentSource to kind of source 1 as string
set OurSource to kind of source 1 as string -- by ID?
display dialog "Source 1 is: " & OurSource
set TheNumberOfSongsInTheLibrary to count the file tracks of library
playlist 1 -- as number
set TheNumberOfSongsString to TheNumberOfSongsInTheLibrary as string
display dialog OurSource & " contains: " & TheNumberOfSongsString & "
songs."
end tell
Note the use of the phrase "library playlist 1" rather than just "playlist 1".
Hope it helps. If not, consider backing up & then trashing the preferences
file for iTunes, which may be corrupted (named "iTunes Music Library", stored
in the same folder as your actual music library files usually), and then try
it again.
Best Wishes,
Marc Glasgow
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.