Re: In praise of "do script" (and the AppleScript team)
Re: In praise of "do script" (and the AppleScript team)
- Subject: Re: In praise of "do script" (and the AppleScript team)
- From: John W Baxter <email@hidden>
- Date: Thu, 18 Apr 2002 21:19:52 -0700
At 17:51 -0700 4/16/2002, Christopher Nebel wrote:
>
This is what the "quoted form" property of strings, introduced in
>
AppleScript 1.8.1 along with "do shell script", was designed to do.
>
Unfortunately, it didn't actually work, so people had to come up with
>
all these terrible workarounds. As of 1.8.2, the simplest way to turn a
>
file into something usable with a shell script is to say
>
>
quoted form of POSIX path of some_file
Hmmm...I was surprised to see that the result of
tell application "Finder"
set x to file "Eudora 5.1.1b23 (OSX)" of desktop as string
end tell
quoted form of POSIX path of x
be Unicode (per Script Debugger's AEPrint setting in the result window):
utxt($0027002F00550073006500720073002F006A006F0068006E002F004400650073006B0074006F0070002F004500750064006F0072006100200035002E0031002E003100620032003300200028004F0053005800290027$)
In "source language" it's the expected
"'/Users/john/Desktop/Eudora 5.1.1b23 (OSX)'"
I guess Apple really is getting serious about Unicode. ;-)
--John (two guesses as to what I was just doing ;-))
--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
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.