Jump to content

osascript: no such component "JavaScript"


Recommended Posts

Hi Vitor,
I don't have such file were you said, I have only a com.apple.ScriptEditor2.LSSharedFileList.plist. that's an empty plist
I have Alfred 5.0.6, the system is Ventura 13.1
The plugin is Pause Tabs (is yours, I suppose), version 2002.2

testing on Safari with Allow JavaScript from Apple Events  enabled


thank  you!

Link to comment

yes reooted, but I have noticed this problem before switching to Ventura
if in terminal I do the following:

osalang -l

I have


asDB lns  cgxerv-h  AppleScript Debugger
ascr appl cgxervdh  AppleScript
jscr appl cgxe-v-h  AppleScript
scpt appl cgxervdh  Generic Scripting System

I imagine I should see also Javascript...

 

Link to comment
  • 2 months later...

I had a similar problem—after upgrading from Monterey to Ventura (13.2.1), my workflows using osascript/JavaScript all failed to run.

 

It took a bit of diagnostic and search work, but I found a simple solution. It applies only if you've installed the 3rd-party app Script Debugger. If so, try deleting the "~/Library/Components/Script Debugger.component" folder it installs. This immediately fixed the problem for me (no reboot required).

 

For more, see my answer on Ask Different: applescript - OSA Script failing for JavaScript All the Sudden - Ask Different.

Link to comment

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...