Trying to delete a Mac application

Klaus major-k klaus at major-k.de
Fri Jan 5 15:30:58 EST 2018


Hi Graham,

> Am 05.01.2018 um 21:23 schrieb Graham Samuel via use-livecode <use-livecode at lists.runrev.com>:
> 
> Thanks to Klaus and Ken, I know how to address the Mac Applications folder. But when I try to delete an app (which I take to be a folder of the form xxx.app) by script, I get a result “can’t delete that file”. But as a user -admittedly with admin privileges - I can move any app into the trash.
> 
> What am doing wrong?

no idea, sorry.

But did you try an with AppleScript?
#####################################################
tell application "Finder"
  delete file "Application name" of folder "Applications" of startup disk
end tell
#####################################################

> Graham

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major-k.de





More information about the use-livecode mailing list