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

Doesn't seem to work on Big Sur 11.2.2 #5

Closed
JayBrown opened this issue Mar 3, 2021 · 2 comments
Closed

Doesn't seem to work on Big Sur 11.2.2 #5

JayBrown opened this issue Mar 3, 2021 · 2 comments

Comments

@JayBrown
Copy link

JayBrown commented Mar 3, 2021

I tried empty-trash on macOS 11.2.2, but it only launched Finder, but then did nothing.

When I run the following command, it works fine:

osascript -e 'tell application "Finder"' -e 'activate' -e 'delay 0.5' -e 'empty trash' -e 'end tell'

Note: I have disabled Finder (i.e. it's never running), and I only enable when I need it (which is rarely). That's what the delay 0.5 is for… sometimes Finder launch is too slow, and the empty trash part will then fail. Maybe that's also the problem with empty-trash-cli in my case?

@sindresorhus
Copy link
Owner

It works fine for me on macOS 11.2.1. It's expected that Finder is running. Disabling Finder is such an obscure thing to do that I'm not even sure it's worth noting it in the readme.

@JayBrown
Copy link
Author

JayBrown commented Mar 3, 2021

No problem. I can use my own solution.

@JayBrown JayBrown closed this as completed Mar 3, 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