r/applescript • u/haris2887 • Nov 29 '23
Chaining commands in Apple script. OsaScript -e
HI All.
Really stuck on the syntax here.
I am trying to run an osascript -e , I am unable to chain multiple commands together.
eg.
osascript -e 'Tell application "Firefox" to activate ; delay 5; quit app "Firefox"'
If I split the command into to it works fine.
I need the above line to work in terminal.
What syntax am I missing ?
3
Upvotes
View all comments
Show parent comment
1
u/ThaMouf Nov 29 '23
Can’t you pack all of your files into one AppleScript and run it with do shell script? You don’t need to make a script file for each command.