Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App not being deleted on macOS Big Sur and later #81

Open
kleuter opened this issue Aug 8, 2020 · 3 comments
Open

App not being deleted on macOS Big Sur and later #81

kleuter opened this issue Aug 8, 2020 · 3 comments

Comments

@kleuter
Copy link

kleuter commented Aug 8, 2020

The framework copies the app to /Applications but doesn't remove it from ~/Downloads.

When an app is running with the attribute "com.apple.quarantine" (meaning downloaded from the Internet) it's running in so called translocation mode and the current workaround for this - trashing the app via AppleScript using Finder. Well, it no longer works on macOS Big Sur and Monterey obviously:

Trash AppleScript error: {
NSAppleScriptErrorAppName = Finder;
NSAppleScriptErrorBriefMessage = "Not authorized to send Apple events to Finder.";
NSAppleScriptErrorMessage = "Not authorized to send Apple events to Finder.";
NSAppleScriptErrorNumber = "-1743";
NSAppleScriptErrorRange = "NSRange: {267, 70}";

There's a solution but as a result a user must allow to control Finder (which is not cool unfortunately 😢 ):

Screen Shot 2021-09-27 at 9 55 41 PM

You will need to:

  • add "com.apple.security.automation.apple-events" attribute to your code signing entitlements
  • add NSAppleEventsUsageDescription to the app plist file, e.g.
<key>NSAppleEventsUsageDescription</key>
<string>Please allow the app to move itself via Apple Script.</string>
@latenitefilms
Copy link

We're using LetsMove in CommandPost, and I've had a few users report this as well.

@latenitefilms
Copy link

Any thoughts on this @andypotion or @potionfactory ? As more people move across to Big Sur, we're seeing more reports of issues from users.

@kleuter
Copy link
Author

kleuter commented Sep 27, 2021

Just updated the initial post, see above.

@kleuter kleuter changed the title App not being deleted on macOS Big Sur App not being deleted on macOS Big Sur and later Sep 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants