The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
1k views

Can AppleScript/osascript be used to click menu extra menu items?

I have an application installed that only appears in the menu bar (as a menu extra to the right). I would like to click one of the items contained in its menu via osascript. I've found the following ...
1
vote
1answer
1k views

Pass arguments to osascript via shell function in OS X Mountain Lion

The answer in How to open a new Firefox window with URL argument is broken in Mac OSX Mountain Lion (10.8.2). I can't comment on that answer or question, so I had to create a new question. It fails ...
2
votes
2answers
4k views

Open new terminal tab and execute script

I need to merge two osascript scripts, so that with one command I can open a new terminal tab and execute a script like echo hello into that new tab. This one opens a new terminal tab. osascript -e ...
5
votes
2answers
6k views

What does this mean? “osascript: Please update this scripting addition to supply a value for ThreadSafe”

Every 10 seconds, I get this message a few times in Console: 27.08.11 16:40:21,034 osascript: Performance: Please update this scripting addition to supply a value for ThreadSafe for each event ...
0
votes
1answer
204 views

Submitting an applescript to xgrid using osascript

I'm trying to submit an applescript to an xgrid using the command line. But I've got something wrong with the formatting. For example this doesn't work. I just get the help screen for xgrid in ...
3
votes
1answer
977 views

How do you send the “ESC” key in OS X using osascript

I'd like to create a small script using osascript in Mac OS X Snow Leopard to emulate pressing the Escape key on the keyboard. How is this most easily done?
1
vote
3answers
609 views

How to make Microsoft Keyboard special keys run osascript commands on OS X?

I'm trying to make (1) special key open new terminal window. I bound it to file /Users/taw/bin/new_term, which contains: #!/bin/sh exec osascript -e 'tell application "Terminal" to do script "cd ."' ...