• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to Run a "sudo" Terminal Command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

--
Take Care,
Chris S.

 _______________________________________________
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

  • Follow-Ups:
    • Re: How to Run a "sudo" Terminal Command
      • From: Christopher Nebel <email@hidden>
    • Re: How to Run a "sudo" Terminal Command
      • From: Shane Stanley <email@hidden>
References: 
 >Re: How to Run a "sudo" Terminal Command (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: How to Run a "sudo" Terminal Command
  • Next by Date: UI scripting...
  • Previous by thread: Re: How to Run a "sudo" Terminal Command
  • Next by thread: Re: How to Run a "sudo" Terminal Command
  • Index(es):
    • Date
    • Thread