Applescript Special Characters

Discussion in 'Mac Programming' started by XnavxeMiyyep, Oct 13, 2008.

  1. XnavxeMiyyep macrumors 65816

    XnavxeMiyyep

    Joined:
    Mar 27, 2003
    Location:
    Washington
    #1
    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?
     
  2. ergdegdeg Moderator emeritus

    ergdegdeg

    Joined:
    Oct 13, 2007
    #2
    You can use this app to see the key codes. In order to produce an "é", first make the accent via "key code 24" then the "e".
     
  3. XnavxeMiyyep thread starter macrumors 65816

    XnavxeMiyyep

    Joined:
    Mar 27, 2003
    Location:
    Washington
    #3
    Thanks!
     
  4. ergdegdeg Moderator emeritus

    ergdegdeg

    Joined:
    Oct 13, 2007
    #4
    I don't know. What characters do you want to type? Greek alphabet?
     
  5. XnavxeMiyyep thread starter macrumors 65816

    XnavxeMiyyep

    Joined:
    Mar 27, 2003
    Location:
    Washington
    #5
    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.
     

Share This Page