![]() Save your applescript as filename.scpt, in my case RunKeepass.scpt with administrative privileges - declares you want to run as an admin."" - replace with your password (keeping quotes) ex "mypass". ![]() password - declares to applescript your password." - replace with your username (keeping quotes) ex "josh".user name - declares to applescript you want to run the command as a specific user." - this is your shell script (full path) created in step one (you can also run direct commands, I could omit the shell script and just run my mono command here) do shell script - applescript command to call external shell commands.Open AppleScript Editor, and call the shell scriptÄo shell script "sh /Volumes/Media/~Users/me/Software/StartKeepass.sh" user name "" password "" with administrator privileges Save shell script, for my example "StartKeepass.sh" (this runs the w32 executable, using the mono framework) Mono "/Volumes/Media/~Users/me/Software/keepass/keepass.exe" Shell ScriptĬreate your shell script in your favorite text editor, for example: As joe mentioned, creating the shell script and then creating an applescript script to call the shell script, will accomplish this, and is quite handy.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |