Edit > Copy As > JavaScript – Perhaps needs a comment line?

MacOS OG Test 7.4 Edit > Copy As > JavaScript very usefully places omniJS code in the clipboard.

Perhaps a risk of confusion for users who might try to execute this in Script Editor using the JavaScript for Automation (JXA) JavaScript tab ?

Can I suggest that the clipboard code is prefaced by a comment line, indicating that the code is for omniJS and won’t work for JXA ?

(FWIW there’s a rough draft user-supplied script for Copy As (JXA) JavaScript here:

(Though I notice that the current builds are not running it successfully – I think some of the OG object model properties are no longer getting through the AppleScript/JavaScript interface in the current 7.4 builds - see the red Stop signs in the graphic below)


1 Like