You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 😢 ):
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>
The text was updated successfully, but these errors were encountered:
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:
There's a solution but as a result a user must allow to control Finder (which is not cool unfortunately 😢 ):
You will need to:
The text was updated successfully, but these errors were encountered: