How to run AppleScript in macOS
Issue #223
Surround script by single quotes
1 | let script = |
Run as administrator
In terminal, we can
1 | cd ~/Library |
In code, we use with administrator privileges
, this when run will ask for password or fingerprint
1 | do shell script "mkdir MyNewFolder" with administrator privileges |