kopischke / JXA.nova

JavaScript for Automation (JXA) support in Nova.
https://extensions.panic.com/extensions/net.kopischke/net.kopischke.jxa/
4 stars 0 forks source link

Not able to compile JXA? #1

Open eivindml opened 3 years ago

eivindml commented 3 years ago

Hi,

thanks for the great initiative in crating this extension! Would really like to have something like this, as Script Editor.app is not very nice to work with.

But I can't get it to work? Syntax highlighting works, but can't find a way to trigger the script from Nova, and my settings page looks way different than yours.

Attached screenshots:

Skjermbilde 2021-02-11 kl  13 10 39 Skjermbilde 2021-02-11 kl  13 10 44
kopischke commented 3 years ago

Hi, thanks for opening an issue and I am sorry for your troubles. This is a problem with Nova’s localisation system I was kind of dreading. What you are seeing are placeholders for localised strings, which leads me to assume your macOS is configured to only use languages which my extension is not localised into (if you read the linked post, you will see I was hoping Nova would be smart enough to fall back on English in that case, but it seems that is not so).

Before we go on, could you do me a favour and post a screenshot of the Language and Region setting in System Preferences, specifically of the General tab?

eivindml commented 3 years ago

Ok, thanks for the clarification. It's Norwegian nb_NO.

Skjermbilde 2021-02-12 kl  09 13 52
kopischke commented 3 years ago

Thanks for posting, that confirms my suspicions. I will have to look for a permanent solution to this, but as a workaround that should fix your issue right away, just add English as a second language to your preferred language list (just click on the “+” in the lower left corner of the pane shown in your screenshot and select English – UK or US flavour, as you prefer, doesn’t make a difference. Make sure English is in second place, i.e. after Norsk, dragging it there if required.) This should enable the English localisation of the plugin – I think you will find it far more usable then.

kopischke commented 3 years ago

@eivindml did you manage to get a usable plugin with the workaround I outlined above?

eivindml commented 3 years ago

Haven't been able to work on my AppleScripts this week, so haven't tested it yet, but will get back to you with results soon! Appreciate the feedback. :)