whats the key code for a quotation mark

whats the key code for a quotation mark?

iMac Alu 2.0GHz, Mac OS X (10.5.5)

Posted on May 30, 2009 10:44 AM

Reply
5 replies

May 30, 2009 10:57 AM in response to V.K.

ok so this is the script i made with this , it makes another script
tell application "Script Editor"
activate
tell application "System Events"
keystroke "n" using {command down}
keystroke "tell application Finder"
keystroke "'" using {shift down}
key code 123
key code 123
key code 123
key code 123
key code 123
key code 123
key code 123
keystroke "'" using {shift down}
key code 124
key code 124
key code 124
key code 124
key code 124
key code 124
key code 124
keystroke return
keystroke "display dialog "
keystroke "'" using {shift down}
keystroke "hello"
keystroke "'" using {shift down}
keystroke return
keystroke "end tell"
end tell
end tell


so now im stuck again, how would i make the new script compile itself

May 30, 2009 12:11 PM in response to Eric Lundquist

Note that a key code is different from a key stroke - the key code is the code for the keyboard key (for example, the single and double quote are the same key code). I am not sure what you are trying to do (your key codes are for the left and right arrow keys) - there are mode direct methods to input and compile a script.

A handy tool for showing key codes is Full Key Codes.

Apr 28, 2011 8:03 AM in response to Eric Lundquist

By the way what are all the keycodes doing? They don't seem to have an effect on the outcome. This might be a better way to write the script you have though.


tell application "Script Editor"


makenewdocument

tell application "System Events"

keystroke "tell application 'finder' to display dialog '" using shift down

keystroke "Hello"


keystroke "'" usingshift down


keystroke "k" usingcommand down

end tell

end tell

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

whats the key code for a quotation mark

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.