alias as string = as Unicode text?
alias as string = as Unicode text?
- Subject: alias as string = as Unicode text?
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 17 May 2002 19:58:52 -0700
AS 1.6 and later:
Since alias format now works with file and folder names in Unicode, what
happens when you coerce an alias 'as string'? According to Script Debugger,
the result is "international text": is that as good as Unicode in this
context? I.e. , when you've got a folder as an alias in a variable
theFolder, is there any point to doing:
set folderPath to (theFolder as string) as Unicode text
set theItems to list folder theFolder -- result is list of Unicode
text in OS 10.1.x
repeat with i from 1 to (count theItems)
set itemName to item i of theItems
set theItem to alias (folderPath & itemName) as Unicode text
-- ... etc.
Will this always work? That is, will the first line actually give the
folderPath in its proper Unicode form, or does the 'as string' mangle
non-ASCII characters in the path, so that setting the result 'as Unicode
text' is pointless?
--
Paul Berkowitz
_______________________________________________
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.