0

This question already has an answer here:

I want applescript to input into microsoft excel "No, (tab, tab again), Yes". I can't seem to make this work. I would preferably like it to start whenever I press a hotkey or something, but having to swipe over and activate the script should be ok.

Thanks, Nick

marked as duplicate by Graham Miln, nohillside Jul 8 '15 at 6:57

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Can you add the script you already have? – nohillside Jul 8 '15 at 6:36
  • @patrix thx for the quick reply, I don't have anything so far, but I have been trying things like "tell application Excel, keystroke "No" to no avail. I am really not talented at things like this so I would be grateful if you could even write a script for me! Thanks, Nick – Nicholas Hassan Jul 8 '15 at 6:44
  • 1
0

There is a lot of information about how to write Applescript code in general and how to use it to send keystrokes available on the net. System Events, Key Code and Keystroke looks kind of interesting in your case and should get you started.

  • Thanks @patrix, I got the script working! Thanks for pointing me in the right direction. – Nicholas Hassan Jul 9 '15 at 7:59

Not the answer you're looking for? Browse other questions tagged .