Re: Setting up Distributable Script App to Delete a File in /Library/Application Support
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