Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

Execute AppleScript - Automate macOS Tasks | Online Free DevTools by Hexmos

Execute AppleScript commands with osascript. Automate macOS tasks, interact with applications, and streamline workflows effortlessly. Free online tool, no registration required.

osascript

Run AppleScript or JavaScript for Automation (JXA). More information: https://keith.github.io/xcode-man-pages/osascript.1.html.

  • Run an AppleScript command:

osascript -e '{{say "Hello world"}}'

  • Run multiple AppleScript commands:

osascript -e '{{say "Hello"}}' -e '{{say "world"}}'

  • Run a compiled (*.scpt), bundled (*.scptd), or plaintext (*.applescript) AppleScript file:

osascript {{path/to/apple.scpt}}

  • Get the bundle identifier of an application (useful for open -b):

osascript -e 'id of app "{{Application}}"'

  • Run a JavaScript command:

osascript -l JavaScript -e "{{console.log('Hello world');}}"

  • Run a JavaScript file:

osascript -l JavaScript {{path/to/script.js}}

See Also