Top "Osascript" questions

MacOS command line tool which executes OSA scripts (AppleScript, JavaScript, etc.

How to check in AppleScript if an app is running, without launching it - via osascript utility

Consider the following AppleScript: on is_running(appName) tell application "System Events" to (name of processes) contains appName end is_…

macos safari applescript osascript
How do I simulate a mouse click through the mac terminal?

Is there any way to do this without any programs or scripts? (Maybe through osascript?)

macos terminal osascript
osascript / syntax error: Expected end of line but found command name. (-2741)

I'm running into problems with a shell script that utilizes a small portion of Applescript. When I compile it with …

syntax applescript syntax-error osascript
osascript using bash variable with a space

I am using osascript in Bash to display a message in Notification Center (Mac OS X) via Apple Script. I …

bash variables syntax applescript osascript
Applescript (osascript): opening split panes in iTerm 2 and performing commands

The following works to open two tabs in iTerm 2. I can't seem to figure out how to get this to …

terminal applescript iterm osascript
Pass in variable from shell script to applescript

I've got a shell script that I call that uses osascript, and that osascript calls a shell script and passes …

bash shell applescript osascript
What are error -10004 and error -10000 in Applescript

I have an Applescript that is working on my computer, but not on my colleague's. I get two errors when …

path applescript error-code osascript
Mac - List opened windows in terminal

I want to list opened windows in the terminal to get x, y, width and height like xwininfo -root -tree …

macos applescript osascript