Linked Questions

0
votes
1answer
475 views

Applescript to emulate key strokes [duplicate]

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 ...
20
votes
7answers
39k views

Waking display from terminal, general waking

This is a two part question. A practical, "how to" question is first, and then I ask for configuration suggestions. First, I put my displays to sleep at night, and I would like to be able to wake ...
6
votes
4answers
2k views

AppleScript keystroke ignoring numbers

A very simple AppleScript like this: tell application "System Events" keystroke "abc 123" end tell results in just “abc” being typed. Online resources suggest this should not be the case. Adding ...
1
vote
2answers
8k views

Perform two keystrokes successively in AppleScript

I want to perform two keystrokes in AppleScript, successively. The script should perform Command+Shift+J and after that Command+W in the application Google Chrome. Can this be done with AppleScript?
3
votes
4answers
3k views

AppleScript: Press Enter Every X minutes If Terminal is Open and Application Has Been Idle for X Minutes

I am new to AppleScript and am attempting to use it. If I am using Terminal and if I have not pressed a key for x minutes I want my Mac to press the return key. It is to repeat this process every y ...
0
votes
1answer
2k views

Using Automator to take a screen shot from Adobe Digital Editions, Page Down and repeat

Is there any way to have OS X's Automator.app repeatedly take screen shots of a book in Adobe Digital Editions? So me doing the task involves: Cmd + Shift + 4 space bar mouse click page down repeat… ...
4
votes
1answer
457 views

Applescript dialog - return/enter special keys (such as page down)?

I am creating an Applescript that show a dialog where the user should be able to enter either any common character (such as a) or any special key (such as page down or ⌘). How can the latter keys/key ...
2
votes
1answer
490 views

Need my automator script to display the regular shutdown prompt before shutting down

I'm using the script below to trigger a shutdown but I would like it to give me the normal warning menu with the 60 sec. countdown, I can't figure out the warning menu. tell application "finder" to ...
1
vote
0answers
213 views

Adjusting Brightness, or executing any keypress, on remote computer via ssh

What are the options to target specific keys on a remote computer and execute the equivalent of virtually pressing them from the terminal via ssh (what would normally be a user pressing them)? ...
0
votes
1answer
46 views

I want to create a script in script editor that will press a key and then press enter every 60 seconds

I want to create a script in script editor that will press a key and then press enter every 60 seconds. However, I don't know how to make a script that presses a key. Does anybody know how to make a ...