I am trying to make an application that consists of a shell script to remove a list of items from any computer the script is run on. It works perfectly for items in the home folder but I will need to be removing certain items from the root Library and when the application runs it does not delete those items. The "code" is extremely simple, it is an automator app set to run an AppleScript:
That same command in terminal works just fine. I have tried adding sudo and it does not help.
Is this a permissions issue? How do I get around it?
Code:
do shell script "rm -Rf ~/Desktop/Test1/ ~/Desktop/Test2.txt /Library/Application Support/Test/" with administrator privileges
That same command in terminal works just fine. I have tried adding sudo and it does not help.
Is this a permissions issue? How do I get around it?