• 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
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]

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


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

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

  • Follow-Ups:
    • Re: Setting up Distributable Script App to Delete a File in /Library/Application Support
      • From: Rick Gordon <email@hidden>
  • Next by Date: Re: Setting up Distributable Script App to Delete a File in /Library/Application Support
  • Next by thread: Re: Setting up Distributable Script App to Delete a File in /Library/Application Support
  • Index(es):
    • Date
    • Thread