|
|
AppleScript: Using Unicode the Sneaky Way
Since AppleScript 2.0 all text is Unicode.
So if you don't want to write your text in hex like this: set myText to «data utxt00680065006C006C006F» as Unicode text Try this for special characters: set myText to character id 37329 & " <-> " & id of "金"
AppleScript: Using Unicode the Sneaky Way
I know you can do that. But this is the "sneaky way" I use because it's a bit time-consuming to hunt down characters in the Char Palette. Besides, I can concatenate text in AppleScript, and do all that wonderful stuff in text editors. A Unicode geek would like this hint a lot, I can tell.
AppleScript: Using Unicode the Sneaky Way
What exactly do you mean by "I found an intersting way"? Unicode savvy AppleScripters have been using this trick (within its limitations) for a while, in particular before the improved unicode support in Leopard's AppleScript so if you "found" it on a web page, you should credit the source. If you worked it out yourself, a quick search would have told you that the method is already known, which makes "I found" a little presumptuous. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|