• 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: iTunes script help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iTunes script help


  • Subject: Re: iTunes script help
  • From: Joe <email@hidden>
  • Date: Wed, 12 Aug 2009 16:30:02 -0700

At 3:52 PM -0700 8/12/09, email@hidden wrote:
>Hi folks,
>
>this script basically just goes to the main library playlist called Music. It used to work fine in older versions of itunes - but not in the latest (v8.2.1) ...
>
>error  = can't set view of browser window 1 to item 1 of {library playlist id 41676 of source is 102 ... etc...}
>
>any ideas how to fix it?
>
>=========
>
>tell application "iTunes"
>	activate
>	set allPlaylists to playlists
>	repeat with aList in allPlaylists
>		if name of aList is not "Music" then
>			set view of front browser window to aList
>			exit repeat
>		end if
>	end repeat
>	set LibList to playlist "Music"
>	set view of front browser window to LibList
>end tell

Your script works here on OS X 10.5.8 and iTunes 8.2.1, but I can't understand why you need all those lines and a repeat loop that only loops to the first item in the list just to do this:

tell application "iTunes"
 activate
 set view of front browser window to playlist "Music"
end tell

Unless the script is part of another script?

HTH
Joe
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >iTunes script help (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Mount Point to Alias
  • Next by Date: Re: Do Script Illustrator CS3
  • Previous by thread: iTunes script help
  • Next by thread: Using \U \L in regular expressions
  • Index(es):
    • Date
    • Thread