Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Osascript always returns error Cannot find executable for CFBundle 0x7fa3f42032e0

Osascript in terminal always returns this error for the simplest function.
When i run the script in ApplescriptEditor it runs fine…

e.g.:

$: osascript -e 'tell application "iTerm" to display dialog "Hello World"'

2014-01-22 11:59:19.822 osascript[665:707] Cannot find executable for CFBundle 0x7fa3f42032e0 </Library/ScriptingAdditions/AeroFSFinderExtension.osax> (not loaded)
osascript: OpenScripting.framework - scripting addition
"/Library/ScriptingAdditions/AeroFSFinderExtension.osax" declares no loadable handlers.
button returned:OK

I already reinstalled XCode and CLL (Using Appcleaner)

Does anybody know how to fix this error? (Or at least silence it…)

I'm on 10.8.5

like image 325
Florian Avatar asked Feb 13 '26 09:02

Florian


1 Answers

What is /Library/ScriptingAdditions/AeroFSFinderExtension.osax?

Looks like it's a broken scripting addition, and if it's not actually needed, simply try to remove the file (you'll need admin privileges), then run osascript again.

like image 71
mklement0 Avatar answered Feb 15 '26 23:02

mklement0