bionhosts.blogg.se

Apple script trash it
Apple script trash it









apple script trash it

I did that by creating a new shell script file in CodeRunner and running it.

apple script trash it

I had to manually trigger the osascript command within CodeRunner, in order to get the prompt to allow CodeRunner to control Apple Events. What ended up working for me, might work for others as well.

APPLE SCRIPT TRASH IT HOW TO

I just couldn't figure out how to manually add CodeRunner to the Automation section of Security & Privacy in System Preferences. I had a very similar issue with a Python script executing AppleScript in CodeRunner. These extensions will be removed if you continue." which I don't get if I just rm -rf the whole app. What I want to accomplish ultimately is that by running a script from my MDM I can get the same dialog that when I drag the app to the bin: "The application “Symantec Endpoint Protection” is hosting system extensions. I think it's related with the Privacy Preferences Policy Control but I cannot make it work. Osascript -e "tell application \"Finder\" to delete (POSIX file \"/Applications/Symantec Solutions/Symantec Endpoint Protection.app\") as alias"īut when run it from my editor (CodeRunner) it fails with: execution error: Not authorised to send Apple events to System Events. Now, I need to run that from my MDM solution (JAMF), so I'm trying to get it into a bash file as this: Tell application "Finder" to delete ((POSIX file "/Applications/Symantec Solutions/Symantec Endpoint Protection.app") as alias) I have this apple script code that works fine from the Script Editor app:











Apple script trash it