Re: Funny Character/Unicode Support
Re: Funny Character/Unicode Support
- Subject: Re: Funny Character/Unicode Support
- From: Christopher Nebel <email@hidden>
- Date: Fri, 12 Mar 2004 16:18:23 -0800
On Mar 12, 2004, at 12:59 PM, SD wrote:
How do I handle funny characters in applescript. For example, if I
name a folder Latin Small Letter O with Breve (o with a u - Breve
above it), then I can't make an applescript alias to it to tell the
finder to open it. Anytime I try to compile the script it changes the
character to o (o followed by the Breve).
Is there no way to handle these characters in applescript. My script
goes through folders processing them and needs to handle special
characters.
There are techniques for handing this sort of thing, but some work
better than others. (AppleScript, in general, is not particularly
graceful about handling Unicode.) If you can be more specific about
what you're trying to do, someone here could provide more specific
advice. Failing that, I can give you the general advice of "use
Unicode text, not string". If you need to hardcode the name of a
folder with interesting characters, I know that using utxt data
constants works. For example:
tell application "Finder"
open folder +data utxt006F0306; of home -- "o" + combining breve.
end tell
If you just need to loop through all the folders, then your problem can
probably be solved by modifying your script a bit.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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.