• 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: Chris Espinosa <email@hidden>
  • Date: Thu, 27 Jun 2002 10:36:16 -0700

On Thursday, June 27, 2002, at 07:06 AM, Martin Michel wrote:

> tell application "iTunes"
> set the_library to name of playlist 1
> set the_tracks to every file track of playlist the_library
> repeat with the_track in the_tracks
> set the_artist to artist of the_track
> display dialog the_artist
> end repeat
> end tell

This works for us here in our testing. Could you perhaps open the
Event Log, check both check boxes, and run the script again to see what
is failing? Apparently iTunes is not returning a valid name of
playlist 1.

A workaround is, of course, to skip that step entirely. You don't need
to use intermediate variables at all:

tell application "iTunes"
repeat with the_track in every file track of playlist 1
display dialog (get artist of the_track)
end repeat
end tell

Chris
_______________________________________________
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.

  • Follow-Ups:
    • Re: Problem with iTunes & AppleScript (1.8.3)
      • From: Martin Michel <email@hidden>
References: 
 >Problem with iTunes & AppleScript (1.8.3) (From: Martin Michel <email@hidden>)

  • Prev by Date: Re: Problem with iTunes & AppleScript (1.8.3)
  • Next by Date: Records in text or binary file
  • Previous by thread: Re: Problem with iTunes & AppleScript (1.8.3)
  • Next by thread: Re: Problem with iTunes & AppleScript (1.8.3)
  • Index(es):
    • Date
    • Thread