Bug? was Re: add finder item to iTunes
Bug? was Re: add finder item to iTunes
- Subject: Bug? was Re: add finder item to iTunes
- From: Joe <email@hidden>
- Date: Mon, 18 Aug 2008 14:01:39 -0700
At 1:35 PM -0700 8/18/08, Michelle Steiner wrote:
>set foo to choose file --use file types or file identifiers to limit selection if you wish
>
>tell application "iTunes"
> activate
> open foo
>end tell
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>>.
But, iTunes goes ahead and opens it anyway.
Wait! You just told me you couldn't do that! That makes it somewhat of a bug don't you think?
The construction I posted earlier gets no error.
tell application "iTunes"
open "Mac HD:Users:joe:Desktop:04 MySong.mp3"
end tell
I only mention this since you used "choose file" which returns an alias.
OSX 7.5.4, G5 Mac. Current iTunes version.
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