Sometimes when I use open
in Terminal.app to open a file, the application spends ~45 seconds bouncing in the Dock, while the same file opens instantly when double-clicked from the finder.
Why does this happen? Is there any way to make open
consistently fast?
Best Answer
I have previously experienced issues with quarantined files that were downloaded from the web and have the
com.apple.quarantine
extended attribute set.To see if this is the case for your file,
ls -l@ filename.ext
in Terminal.To remove the extended attribute, run
xattr -d com.apple.quarantine filename.ext