• Isadora
  • Get it
  • Forum
  • Help
  • ADD-ONS
  • Newsletter
  • Impressum
  • Dsgvo
  • Impressum
Forum
    • Categories
    • Recent
    • Popular
    • Tags
    • Register
    • Login

    [ANSWERED] How to start an external program from Javascript actor ?

    How To... ?
    javascript ext. program
    5
    8
    1.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jfgJ
      jfg
      last edited by DusX

      The titel says already all. I have tried following

      var SyR = Application('Syphon Recorder');

      SyR.activate();

       but I got this message:

      Javascript Error Line 1: ReferenceError: Application is not defined

      what is missing? the same code works in automator

      thanks

      Jean-François

      • Izzy 3.2.6, Mac OS 14.1 Sonoma:
      - MacBook Pro M1 Max 16" 64GB RAM
      • Izzy 3.2.6, Mac OS 10.14.6 (Mojave):
      - Mac Pro 5.1 middle 2012 (3,33 GHz 6-Core Intel Xeon, 32GB RAM, Radeon RX 580 8 GB )
      - MacBook Pro 2015 (16GB RAM) 2,8 GHz Intel Core i7;

      Located in Bremen, Germany

      DusXD markM 2 Replies Last reply Reply Quote 0
      • DusXD
        DusX Tech Staff @jfg
        last edited by

        @jfg said:

        activate();

         Javascript is run via the V8 engine, and doesn't have access to any Web/Dom elements.
        That said, I don't think activate() is a Javascript function that allows what you expect. 
        I did a search and can't find any reference to it.
        Either-way, this feature is not supported in the V8 engine.

        Troikatronix Technical Support

        • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
        • Isadora Add-ons: https://troikatronix.com/add-ons/
        • My Add-ons: https://troikatronix.com/add-ons/?u=dusx

        Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

        jfgJ 1 Reply Last reply Reply Quote 0
        • jfgJ
          jfg @DusX
          last edited by

          @dusx

          Thank you. any other solution?

          Jean-François

          • Izzy 3.2.6, Mac OS 14.1 Sonoma:
          - MacBook Pro M1 Max 16" 64GB RAM
          • Izzy 3.2.6, Mac OS 10.14.6 (Mojave):
          - Mac Pro 5.1 middle 2012 (3,33 GHz 6-Core Intel Xeon, 32GB RAM, Radeon RX 580 8 GB )
          - MacBook Pro 2015 (16GB RAM) 2,8 GHz Intel Core i7;

          Located in Bremen, Germany

          gapworksG 1 Reply Last reply Reply Quote 0
          • gapworksG
            gapworks @jfg
            last edited by

            @jfg Apple script is what i use

            Running MBP2017 / Osx 10.14.5 / 16 GB 2133 MHz LPDDR3 / Intel HD Graphics 630 1536 MB / Latest Isadora Version / www.gapworks.at / located in Vienna Austria

            jfgJ 1 Reply Last reply Reply Quote 0
            • jfgJ
              jfg @gapworks
              last edited by

              @gapworks

              but how do you use applescript in Isadora without an external application?

              • Izzy 3.2.6, Mac OS 14.1 Sonoma:
              - MacBook Pro M1 Max 16" 64GB RAM
              • Izzy 3.2.6, Mac OS 10.14.6 (Mojave):
              - Mac Pro 5.1 middle 2012 (3,33 GHz 6-Core Intel Xeon, 32GB RAM, Radeon RX 580 8 GB )
              - MacBook Pro 2015 (16GB RAM) 2,8 GHz Intel Core i7;

              Located in Bremen, Germany

              J 1 Reply Last reply Reply Quote 0
              • J
                jandraka @jfg
                last edited by

                @jfg

                Hi,

                I have made an FFGL plugin with Vuo that allows launching apps from Isadora. It is created as an FFGL plugin because it is the only way to export it from Vuo. No need to connect to projector or image dimensions. Another way to launch applescript is through OSCulator (you send an osc message from Isadora and route it to applescript with OSCulator). Another option would be Bome MIDI Translator.

                Best

                Javi

                AppLauncher.bundle.zip

                MBP M2 Max 32 GB. MacOS 13.4.1 Isadora 3.2.6

                jfgJ 1 Reply Last reply Reply Quote 1
                • jfgJ
                  jfg @jandraka
                  last edited by

                  @jandraka said:

                  Thank you very much

                   

                  • Izzy 3.2.6, Mac OS 14.1 Sonoma:
                  - MacBook Pro M1 Max 16" 64GB RAM
                  • Izzy 3.2.6, Mac OS 10.14.6 (Mojave):
                  - Mac Pro 5.1 middle 2012 (3,33 GHz 6-Core Intel Xeon, 32GB RAM, Radeon RX 580 8 GB )
                  - MacBook Pro 2015 (16GB RAM) 2,8 GHz Intel Core i7;

                  Located in Bremen, Germany

                  1 Reply Last reply Reply Quote 0
                  • markM
                    mark @jfg
                    last edited by

                    @jfg

                    Just so you all know: I've been hestitant to allow actors in Isadora that could allow a patch to do damage to your system, i.e., erase your hard drive. That's why I've avoided things like allowing AppleScript or applications to be launched. To me it feels like a security risk to allow such things. But I am happy to see that the Isadora community always seems to find a way. 😉

                    Best Wishes,
                    Mark

                    Media Artist & Creator of Isadora
                    Macintosh SE-30, 32 Mb RAM, MacOS 7.6, Dual Floppy Drives

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post