Jump to content

[SOLVED] All my OSA scripting languages have disappeared


Recommended Posts

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:

822408199_Screenshot2020-05-07at18_53_05.thumb.png.83db0571e17988e32aae4f98fca2605c.png

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 post
  • vitor changed the title to [SOLVED] All my OSA scripting languages have disappeared

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...