iandol Posted May 7, 2020 Share Posted May 7, 2020 Trying to run an Alfred workflow and I kept getting this error: Code 1: osascript: no such component "JavaScript". A google search turns up an Alfred forum post and linked think different post suggesting to delete ~/Library/Preferences/com.apple.ScriptEditor2.plist and reboot. But in my case it didn't solve anything. Not only Javascript is missing, Applescript too: Confirmed on the command line (osalang -l), although my Applescript and Javascript components are present in /System/Library/Components... ➜ osalang -l ...crickets ➜ ll /System/Library/Components total 0 drwxr-xr-x 8 root wheel 256B Jul 12 2019 ./ drwxr-xr-x 116 root wheel 3.6K Aug 1 2019 ../ drwxr-xr-x 3 root wheel 96B Jul 6 2019 AUSpeechSynthesis.component/ drwxr-xr-x 3 root wheel 96B Jul 6 2019 AppleScript.component/ drwxr-xr-x 3 root wheel 96B Jul 6 2019 AudioCodecs.component/ drwxr-xr-x 3 root wheel 96B Jul 9 2019 AudioDSP.component/ drwxr-xr-x 3 root wheel 96B Jul 9 2019 CoreAudio.component/ drwxr-xr-x 3 root wheel 96B Jul 6 2019 JavaScript.component/ I know this isn't an Alfred problem (though as most of my osascript is run via Alfred, this is where the problem manifests), but do any of you smart scripters have an idea of what I can do to fix this? A clean installed macOS 10.15.4 (19E287) on a mid-2015 iMac that was working pretty fine up till now. I tried reinstalled command-line tools just in case. Link to comment
iandol Posted May 8, 2020 Author Share Posted May 8, 2020 OK, well the voodoo that fixed this was: safe boot + reinstall the 10.15.4 combo update... Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now