Re: How to Run a "sudo" Terminal Command
Re: How to Run a "sudo" Terminal Command
- Subject: Re: How to Run a "sudo" Terminal Command
- From: Christopher Stone <email@hidden>
- Date: Sun, 10 Jan 2016 02:04:54 -0600
On Jan 09, 2016, at 18:20, Christopher Nebel <email@hidden> wrote:
One is to use Script Menu, which supports executable shell scripts. ______________________________________________________________________
That's not self-contained as Steve was requesting, but it works well (and few people seem to know the Script Menu will run shell scripts).
I use FastScripts for this sort of thing, because it does everything the System Script Menu does and has global and app-specific keyboard shortcuts. Demo mode allows unlimited scripts but only 10 assignable keyboard shortcuts. The full version unlocks unlimited keyboard shortcuts and costs $9.95 U.S. ( I've used it happily since 2003 – obviously I like keyboard shortcuts. :)
Two is to embed it in an application bundle as the main executable. You then have a double-clickable application that executes your script without involving Terminal.
Cool. I was completely unaware of this.
Just tested it.
I'm surprised you can replace the applet file with a plain text shell script, but it works perfectly.
Thanks Chris.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden