• 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: "S. J. Cunningham" <email@hidden>
  • Date: Sun, 10 Jan 2016 06:24:53 -0500

On Jan 9, 2016, at 7:20 PM, Christopher Nebel wrote:

> 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.  The easiest way to make one is probably to save an applet from Script Editor, then replace the “applet” executable in Contents/MacOS with your script.  The name “applet” is specified in the bundle’s Info.plist, so if you want to name the file something different, edit the Info.plist (specifically, the CFBundleMainExecutable value) to match.

Cool.  That is what I was looking for.  Thanks!

Steve
------------------
OS X 10.6.8, AppleScript 2.1.2


 _______________________________________________
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


References: 
 >Re: How to Run a "sudo" Terminal Command (From: Christopher Nebel <email@hidden>)

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