Applescript How to run Run an applescript file from the terminal with osascript <some-file>.applescript. Run applescript inline in the terminal with osascript -e 'some code'. Handy snippets get every UI element of window 1 Have fun!