• 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: Setting up Distributable Script App to Delete a File in /Library/Application Support
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting up Distributable Script App to Delete a File in /Library/Application Support


  • Subject: Re: Setting up Distributable Script App to Delete a File in /Library/Application Support
  • From: Rick Gordon <email@hidden>
  • Date: Mon, 01 Jun 2015 23:28:56 -0700

I got it. I needed to add "with administrator privileges" to a couple of do shell script lines.

---------------------
On 6/1/15, 9:04 PM, Rick Gordon wrote:
I'm trying to put together an Uninstall script for end-users, which among other things, must kill an application process residing in /Library/Application Support, that might find itself with system ownership, and also delete the application.

Running Yosemite, even with the application set to user ownership, I get an "Permission denied" number 1" error when trying to delete it (using do shell script "rm -rf <PATH_TO_APP>).

If I use sudo, I get "'sudo: no tty present and no askpass program specified' number 1"

Suggestions, please? Thanks in advance.
___________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________
WWW: http://www.shelterpub.com
 _______________________________________________
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: 
 >Setting up Distributable Script App to Delete a File in /Library/Application Support (From: Rick Gordon <email@hidden>)

  • Prev by Date: Setting up Distributable Script App to Delete a File in /Library/Application Support
  • Next by Date: from ASObjC Runner to Yosemite
  • Previous by thread: Setting up Distributable Script App to Delete a File in /Library/Application Support
  • Next by thread: from ASObjC Runner to Yosemite
  • Index(es):
    • Date
    • Thread