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/libcrypto Nov 29 '23
Ugh, I don't mean the text, "control-v" and "return". I mean an actual control-v and an actual return. It will look like this:
The ^Ms are not carats followed by "M"s. They are actual embedded return characters.