# Why is the Terminal.app 'open' command slower than opening a file via the Finder?

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?

-
Cannot reproduce. Are these files that are quarantined after download? What version of OS X are you using? –  Daniel Beck May 24 '11 at 18:46
Nope, locally created files. Right now 10.6.7, but I recall the problem happening at least as far back as 10.5. –  blahdiblah May 24 '11 at 18:58
FWIW, I think I actually found a solution to this problem years ago, perhaps relating to locale detection problems, but I seem to have lost the fix. –  blahdiblah May 24 '11 at 19:00
Locale as in the LANG environment variable? Also, have you checked the logs in /Applications/Utilities/Console.app for anything interesting? –  Daniel Beck May 24 '11 at 19:02
Yes, or LC_something, but as I say, I don't remember the details. Nothing in the logs. –  blahdiblah May 24 '11 at 19:05

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