Re: AppleScript gets incorrect file name - OSX
Re: AppleScript gets incorrect file name - OSX
- Subject: Re: AppleScript gets incorrect file name - OSX
- From: Lachlan Deck <email@hidden>
- Date: Tue, 28 May 2002 17:07:09 +1000
Hi there,
From: JY <email@hidden>
I found some files in my iTunes music folder that were created by
importing a music CD (with track names etc. already gotten from the
online CD database) into iTunes. These are very peculiar files. My eyes
see an odd character in their file names (both looking at the files on
the desktop, and looking at their names in a navigation box). The
character looks like a tiny little man with a box around it. Most
certainly not* a question mark! (more on that in a moment).
AppleScript, the Finder and the clipboard do not get the correct names
for these files. For example, "She?s Got Her Ticket.mp3" is returned by
AppleScript, and by copying the file name in the finder and pasting into
a text editor.
Examples:
The first shows what you can't do with it!!
set f to choose file
-->alias "HD:Users:me:Desktop:She?s Got Her Ticket.mp3"
Just did a quick test - and it works fine for me.
i.e., I made a file on my desktop called "She's Got Her Ticket.mp3"...
I'm on Mac OS X 10.1.4
set f to choose file
-->alias "HD:Users:...:Desktop:She's Got Her Ticket.mp3"
You must have an extended character in the name...
set theFile to ((choose file) as string)
do something with (theFile as alias)...
with regards,
--
Lachlan Deck
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.