• Products
    • Isadora
    • Get It
    • ADD-ONS
    • IzzyCast
    • Get It
  • Forum
  • Help
  • Werkstatt
  • Newsletter
  • Impressum
  • Dsgvo
  • Press
  • Isadora
  • Get It
  • ADD-ONS
  • IzzyCast
  • Get It
  • Press
  • Dsgvo
  • Impressum

Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags

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

    Feature Requests
    8
    11
    5399
    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.
    • fitussi
      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

      crystalhorizon Michel mark 3 Replies Last reply Reply Quote 0
      • crystalhorizon
        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

        DusX 1 Reply Last reply Reply Quote 0
        • Michel
          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
          • DusX
            DusX Izzy Guru @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 Professional Services
            https://troikatronix.com/professional-services

            🎫 Support Tickets
            https://support.troikatronix.com/support/tickets/new

            💻 Add-ons
            https://troikatronix.com/add-ons/?u=dusx

            🧪 GitHub Projects
            https://github.com/rwebber

            🖥️ Win11 | i7 | RTX 4070 | 32GB RAM | Ontario, Canada

            1 Reply Last reply Reply Quote 1
            • fitussi
              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

              DusX 1 Reply Last reply Reply Quote 0
              • DusX
                DusX Izzy Guru @fitussi last edited by

                @fitussi

                I am working on a possible solution.

                Please give me the weekend to get back to you.

                🎛️ TroikaTronix Professional Services
                https://troikatronix.com/professional-services

                🎫 Support Tickets
                https://support.troikatronix.com/support/tickets/new

                💻 Add-ons
                https://troikatronix.com/add-ons/?u=dusx

                🧪 GitHub Projects
                https://github.com/rwebber

                🖥️ Win11 | i7 | RTX 4070 | 32GB RAM | Ontario, Canada

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

                  @dusx Any news on this one>?

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

                    @tincho-genosha

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

                    🎛️ TroikaTronix Professional Services
                    https://troikatronix.com/professional-services

                    🎫 Support Tickets
                    https://support.troikatronix.com/support/tickets/new

                    💻 Add-ons
                    https://troikatronix.com/add-ons/?u=dusx

                    🧪 GitHub Projects
                    https://github.com/rwebber

                    🖥️ Win11 | i7 | RTX 4070 | 32GB RAM | Ontario, Canada

                    1 Reply Last reply Reply Quote 2
                    • mark
                      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

                      bonemap 1 Reply Last reply Reply Quote 3
                      • bonemap
                        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 4.1.3 | USB 4.1.3 | + Beta
                        MBP 14” 2022 M2 16GB | 26.1 Tahoe
                        Mac Studio 2023 M2 Ultra 128GB | 26.1 Tahoe
                        Mac Mini 2025 M4 Pro 64GB | 26.1 Tahoe
                        MBP 16” 2026 M5 Max 128GB | 26.5 Tahoe

                        A range of deployable older Macs

                        Woland 1 Reply Last reply Reply Quote 0
                        • Woland
                          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: https://support.troikatronix.com/support/tickets/new
                          Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
                          Add-Ons: https://troikatronix.com/add-ons/ & https://troikatronix.com/add-ons/?u=woland
                          Professional Services: https://support.troikatronix.com/support/solutions/articles/13000109444

                          | Isadora Version: all of them | 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