Platforms to show: All Mac Windows Linux Cross-Platform

/Mac/AppleScript/AppleScript Root Shell
Feedback.

Function:
You find this example project in your Plugins Download as a Realbasic project file within the examples folder: /Mac/AppleScript/AppleScript Root Shell
This example is the version from Wed, 2nd Mar 2010.
Notes: Last modified: Wed, 2nd Mar 2010
Class App
Inherits Application
// Event implementations
Sub Open()
// Run whoami with admin rights

dim a as AppleScriptMBS
dim b as AppleScriptMBS

a=new AppleScriptMBS

// compile this source code
a.Compile "do shell script ""whoami"" with administrator privileges"

// and run it
a.Execute

// now decompile
MsgBox a.Result

Quit
End Sub
End Class


See also:




Links
MBS Filemaker Plugins - Pfarrgemeinde St. Arnulf Nickenich