Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
    
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
show 3 more comments

1 Answer

up vote 5 down vote accepted

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

share|improve this answer
    
Brilliant! Thank you very much :-) –  maayank May 12 '12 at 11:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.