Re: Bug? was Re: add finder item to iTunes
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