# File AGTMacOsX.rb, line 61 def apple_string (c) # essentially converts the string we're given to a character, # then to the proper keycode i = c[0].to_i # notes: i really needs to be [65-90] (decimal) # [A-Z] == [65-90] # [a-z] == [97-122] # need to subtract 32 b/c java takes only the 26 cap # char's. need to add 'shift' to really get caps tho. i = i - 32 if i > 96 && i < 123 apple_fixnum(i) end