• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem with iTunes & AppleScript (1.8.3)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Event handler labels
  • Next by Date: re: Prompt with PSD 7 (& transfering script to a PC)
  • Previous by thread: Re: Problem with iTunes & AppleScript (1.8.3)
  • Next by thread: Sorting everything and ask Settings for sorting
  • Index(es):
    • Date
    • Thread