Calling applescript from shell script using admin previleges
Posted
by
Nir
on Stack Overflow
See other posts from Stack Overflow
or by Nir
Published on 2011-01-12T07:48:50Z
Indexed on
2011/01/12
7:53 UTC
Read the original article
Hit count: 183
I'm running a shell script that runs an installation program (by ViseX) and selects different items in the installer through a list. The installer needs administrator privileges to run properly, but I don't want to use sudo.
Here's the applescript I'm using:
osascript <<-END
tell application "$1"
with timeout of 8 * 3600 seconds
activate
Select "$2"
DoInstall
end timeout
end tell
END
© Stack Overflow or respective owner