PDA

View Full Version : Applescript Special Characters




XnavxeMiyyep
Oct 13, 2008, 03:42 PM
When I try to type a character, such as é, into AppleScript, it is treated as an a. (say "olé" is pronounced "olah", for instance).

Is there a way to make Applescript recognize such characters?



ergdegdeg
Oct 13, 2008, 03:49 PM
You can use this app (http://softwares.bajram.com/utilities/#Full_Key_Codes) to see the key codes. In order to produce an "é", first make the accent via "key code 24" then the "e".

XnavxeMiyyep
Oct 13, 2008, 04:22 PM
You can use this app (http://softwares.bajram.com/utilities/#Full_Key_Codes) to see the key codes. In order to produce an "é", first make the accent via "key code 24" then the "e".

Thanks!

ergdegdeg
Oct 13, 2008, 04:30 PM
I don't know. What characters do you want to type? Greek alphabet?

XnavxeMiyyep
Oct 13, 2008, 04:44 PM
I wanted to type things like "delta" and "is an element of". However, I just realized that Butler actually has a print text function that can handle this, and I can map keyboard shortcuts to series of things (so applescript, butler prints text, more applescript).

Thanks for the info though.