• 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: has <email@hidden>
  • Date: Tue, 19 Aug 2008 22:14:48 +0100

On 19 Aug 2008, at 21:44, Luther Fuller wrote:

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.

That's to be expected. [1]


And the constructions

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

ought to be equal, but apparently aren't.

Object specifiers are not the same thing as coercions. As to any differences in their respective behaviours, that's a longer discussion for another time.


has

[1] Assuming one understands exactly how the AppleScript compiler and interpreter work, which not many users do as it's rather complicated and far from adequately documented.
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net


_______________________________________________
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: 
 >Re: Bug? was Re: add finder item to iTunes (From: has <email@hidden>)
 >Re: Bug? was Re: add finder item to iTunes (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Applescript, Leopard, and dialup modems
  • Next by Date: Re: Applescript, Leopard, and dialup modems
  • 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