• 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: Bug? was Re: add finder item to iTunes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug? was Re: add finder item to iTunes


  • Subject: Re: Bug? was Re: add finder item to iTunes
  • From: Luther Fuller <email@hidden>
  • Date: Tue, 19 Aug 2008 15:44:38 -0500

On Aug 19, 2008, at 3:17 PM, has wrote:
Joe wrote:

Michelle, if I  write:

tell application "iTunes"
open alias "Mac HD:Users:joe:Desktop:04 MySong.mp3"
end tell

the script errors and returns this error message:

iTunes got an error: Can't get alias "Mac HD:Users:joe:Desktop:04 MySong.mp3" of <<script>>.


It's an AppleScript screw-up. The problem is that 'alias' literals that appear as command parameters are being packed into Apple events as object specifiers ('references' in AppleScript parlance) instead of typeAlias descriptors as you'd expect. e.g.:

Interesting. I've also noticed that, while ...

	tell application "iTunes"
		open (alias "Work_Files:Music:Bach:Violin Concerto No 2.aif")
	end tell

does not work, this ...

	tell application "iTunes"
		open (get alias "Work_Files:Music:Bach:Violin Concerto No 2.aif")
	end tell

does work. And the constructions

	alias "..." = "..." as alias

ought to be equal, but apparently aren't. Which seems to me to be the bug, here.

_______________________________________________
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
  • Follow-Ups:
    • Re: Bug? was Re: add finder item to iTunes
      • From: Philip Aker <email@hidden>
    • Re: Bug? was Re: add finder item to iTunes
      • From: has <email@hidden>
References: 
 >Re: Bug? was Re: add finder item to iTunes (From: has <email@hidden>)

  • Prev by Date: Re: Bug? was Re: add finder item to iTunes
  • Next by Date: Re: excel
  • Previous by thread: Re: Bug? was Re: add finder item to iTunes
  • Next by thread: Re: Bug? was Re: add finder item to iTunes
  • Index(es):
    • Date
    • Thread