I could use some help with a similar error. I'm not a programmer. I installed VirtualBox, and decided to go with Parallels. When I double click VirtualBox_Uninstall.tool, I get:
Last login: Thu Oct 11 07:53:04 on console
/Volumes/VirtualBox/VirtualBox_Uninstall.tool ; exit;
davids-iMac:~ david seln$ /Volumes/VirtualBox/VirtualBox_Uninstall.tool ; exit;
-bash: /Volumes/VirtualBox/VirtualBox_Uninstall.tool: /bin/sh: bad interpreter: Operation not permitted
From our recent conversation, i know you have resolved the VirtualBox removal issue. Should you have a future bad interpreter: Operation not permitted issue, the following link has a solution that works for that error. It is similar to Linc's Find syntax earlier in this post.
TextEdit is not a true code editor, and in your case, may add undesireable attributes to your code.
Pico, vi, vim, Sublime Text 2, Chocolate, Textmate, Xcode editor, and others treat code as code, hence your experience with Pico.
actually if you know how to use it.. it is a true text editor and will not add anything weird.
The errors here have nothing to do with the file itself, but Gatekeeper.
All these answers are useless spam! The only thing that says what's really going on and a solution that works is described here:
Short: run this command and you should be fine.
xattr -d com.apple.quarantine <YOUR FILE HERE>
thank u so mutch, your solution work and save my time, and of cource i completely agree with u: about 4 pages of useless spam
I had this problem too, appearing on 10.8.3
It appeared after I had some FS damage, I think due to VirtualBox creating a VDI badly. I repaired the FS and the permissions. After that I saw this error when trying to run scripts that I work on inside a HFS+ case sensitive disk image. The same problem was happening for very simple scripts I created after the problem started.
None of the suggestions I have read in this thread resolved the issue. What eventually resolved it for me was to create a new disk image, copy the files across, and then, for each script, to do:
cat script > new_script
chmod +x new_script
mv new_script script
Hours were wasted figuring out this problem.