Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 1st, 2012  |  syntax: None  |  size: 0.25 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Send a key code to an application without activating it first?
  2. tell application "X"
  3.     activate
  4.     tell application "System Events" to key code 49
  5. end tell
  6.        
  7. activate application "X"
  8. tell application "System Events" to key code 49
  9. activate me