castroCrea

    • Jun 29, 2023
    • Joined Jun 22, 2023
    • 1 discussion
    • 4 posts
    • 0 best answers
    • 3 points
    • Steps to reproduce:

      Open Script Editor from Apple
      Create a new Script choose Javascript
      Write

            const system = Application('System Events');
            const process = system.processes.whose({ name: 'Orion' })[0];
            const appName = process.displayedName();
            const app = Application(appName);
            const window = app?.windows?.[0];
            const tab = window.currentTab();
           console.log(app.doJavaScript('(() => { return {}})()', { in: tab }))

      Expected behavior:
      To return {} like in Safary

      Orion, OS version; hardware type:

      Version 0.99.124.4.1-beta (WebKit 616.1.14.11.1)

      • dino replied to this.