-- runConsoleAsAdmin property adminUsername : "fred" property appExecutablePath : "/Applications/Utilities/Console.app/Contents/MacOS/Console" runAsUser(appExecutablePath, adminUsername) on runAsUser(executablePath, userName) set switchUserCmd to "/usr/bin/su -l " & userName set executableCmd to "'" & executablePath & " >& /dev/null &" & "'" set command to switchUserCmd & " -c " & executableCmd do shell script command with administrator privileges end runAsUser