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

    [APPLESCRIPT SOLUTION/LOGGED] How to dynamically load media files (videos/photos)

    Feature Requests
    8
    11
    2.8k
    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.
    • fitussiF
      fitussi
      last edited by mark

      Hi

      I am trying to understand how to dynamically load files into Isadora.        I have two folders, one with videos the other with images, which I need to load into Isadora to randomly play (with some processing on the way..).  These folders are not static, but created "on the fly", files copied via Dropbox/GDrive/USB-stick *while* the isadora program is running unattended.

      Is there a way to dynamically load file lists ?   "listen" on a folder for changes, or periodically re-scan a folder (every minute or so).

      Thanks for you help!

      Fabien

      mac 2 ghz i7 8gb 0sx 10.9.5

      crystalhorizonC MichelM markM 3 Replies Last reply Reply Quote 0
      • crystalhorizonC
        crystalhorizon Beta Platinum @fitussi
        last edited by

        @fitussi look at the data array actor 

        And see this article https://support.troikatronix.c...

        Alexander Nantschev | http://www.crystalhorizon.at | located in Vienna Austria

        DusXD 1 Reply Last reply Reply Quote 0
        • MichelM
          Michel Izzy Guru @fitussi
          last edited by

          @fitussi

          You can also do it with apple script. See here https://community.troikatronix...

          Best Michel

          Michel Weber | www.filmprojekt.ch | rMBP (2019) i9, 16gig, AMD 5500M 8 GB, OS X 10.15 | located in Winterthur Switzerland.

          1 Reply Last reply Reply Quote 1
          • DusXD
            DusX Tech Staff @crystalhorizon
            last edited by

            @crystalhorizon

            The data array, and javascript don't allow this. 

            Michels' comment about apple script is probably the best option.

            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.

            1 Reply Last reply Reply Quote 1
            • fitussiF
              fitussi
              last edited by

              Thanks for the reply.

              Seems like JS can't do it directly.    no way to list files in a folder,   or load into movie slot.

              Applescript is not an option, as we're running this installation on Windows machine (because of the projection specs).

              Any other idea ?

              Thanks.

              mac 2 ghz i7 8gb 0sx 10.9.5

              DusXD 1 Reply Last reply Reply Quote 0
              • DusXD
                DusX Tech Staff @fitussi
                last edited by

                @fitussi

                I am working on a possible solution.

                Please give me the weekend to get back to you.

                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.

                T 1 Reply Last reply Reply Quote 0
                • T
                  tincho-genosha @DusX
                  last edited by

                  @dusx Any news on this one>?

                  DusXD 1 Reply Last reply Reply Quote 0
                  • DusXD
                    DusX Tech Staff @tincho-genosha
                    last edited by

                    @tincho-genosha

                    We have a solution coming for the next major release of Isadora, but not yet. 

                    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.

                    1 Reply Last reply Reply Quote 2
                    • markM
                      mark @fitussi
                      last edited by mark

                      @fitussi

                      If you are using Isadora 3.2.1 or later on macOS? If so, we can adapt this trick from 2015 to accomplish your goal. By making the attached AppleScript a "Folder Action", media will be automatically imported when it is dragged into or saved into a specified folder.

                      First: Make add-media-to-isadora.scpt Available as a Folder Action Script 

                      1. Unzip the attached script "add-media-to-isadora.scpt"
                      2. In the Finder, choose Go > Go To Folder... and enter the following path into the dialog: /Library/Scripts/Folder Action Scripts
                      3. Click "Go"
                      4. Drop the "add-media-to-isadora.scpt" into the "Folder Actions Scripts" folder.
                      5. If asked, confirm adding the script t to Folder Actions Scripts folder by entering your password.

                      Second: Attach the Folder Action Script to a Folder:

                      1. Find the folder where your media will appear.
                      2. Control-click that folder in the Finder and from the popup menu choose Services > Folder Actions Setup...
                      3. In the "Confirm Service" dialog that appears (macOS Mojave and later) click "Run Service"
                      4. The Folder Actions Setup app launches. Click the "+" button under the right hand column.
                      5. In the dialog that appears, select the script add-media-to-isadora. 
                      6. Click "Attach"
                      7. Finally, make sure to enable the checkbox at the top left labeled "Enable Folder Actions". You may see one or more dialogs asking you for confirmation that you wish to allow this. Say "Yes" or "OK" to all of these.

                      Third: Try the script:

                      1. Open Isadora
                      2. Copy a media file, like a picture, and then paste it into your Watched Folder.
                      3. Voilá! It appears in the Media View.

                      Now you can use the Get Media Count actor to keep track of how many items are in the view, and use that value to respond when the number of images. videos, etc, change.

                      I hope that helps!

                      Best Wishes,
                      Mark

                      add-media-to-isadora.scpt.zip

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

                      bonemapB 1 Reply Last reply Reply Quote 3
                      • bonemapB
                        bonemap Izzy Guru @mark
                        last edited by bonemap

                        @mark

                        Great to see this update for a really useful function. But unfortunately this no similar options for Windows based systems.

                        Best Wishes 

                        Russell

                        http://bonemap.com | Australia
                        Izzy STD/USB 3.2.6 | + Beta 3.x.x
                        MBP 16” 2019 2.4 GHz Intel i9 64GB AMD Radeon Pro 5500 8 GB 4TB SSD | 14.1.2 Sonoma
                        Mac Studio 2023 M2 Ultra 128GB | OSX 14.1.2 Sonoma
                        A range of deployable older Macs

                        WolandW 1 Reply Last reply Reply Quote 0
                        • WolandW
                          Woland Tech Staff @bonemap
                          last edited by Woland

                          @bonemap said:

                          unfortunately this no similar options for Windows based systems.

                           As @DusX said, we've got something in the works 😉

                          TroikaTronix Technical Support
                          New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
                          TroikaTronix Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
                          TroikaTronix Add-Ons Page: https://troikatronix.com/add-ons/

                          | Isadora 3.2.6 | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s |

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