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: 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