• 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

    Autoload jpg to media bin from watched folder (Applescript)

    How To... ?
    3
    6
    3032
    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.
    • primaldivine
      primaldivine last edited by

      Am using an applescript to load media when a new file is added to a watched folder. Fine.
      I think this question is mainly for Mark, since I would need ot know how Isadora internally handles Applescript indexes...
      But due to some limitations of the process I am working with, I use a shellscript bash to delete the current file in a watched folder, then wait a second and copy a new file there with the same name.
      But Isadora fails to autoupload it...(although sometimes it does)....

      Question... is this because the file has the same name, that it is being buggy? 
      By default it should add it to the list, so if there are already 2 files, it would become the thrid file, despite all files having the same name.

      Jamie

      Pro-User Latest Beta - MacBook Pro i7 2.66GHz SSD
      www.jamiegriffiths.com Arctic Canada
      www.chickweedarts.com

      1 Reply Last reply Reply Quote 1
      • primaldivine
        primaldivine last edited by

        on adding folder items to this_folder after receiving these_items

        try
                tell application "IsadoraCore USB Key"
                    import media into document 1 from these_items
                end tell

        on error msg
                display dialog "Error importing file into Isadora: " & msg
            end try

        end adding folder items to

        Pro-User Latest Beta - MacBook Pro i7 2.66GHz SSD
        www.jamiegriffiths.com Arctic Canada
        www.chickweedarts.com

        1 Reply Last reply Reply Quote 0
        • Skulpture
          Skulpture Izzy Guru last edited by

          I've wondered this. I use your applescript a lot. The load in works amazing. But I would love to be able to delete a file in the folder and see it be removed from the isadora folder too.

          This would work amazing in conjunction with folder watcher actors. 

          Graham Thorne | www.grahamthorne.co.uk
          RIG 1: Custom-built PC: Windows 11. Ryzen 7 7700X, RTX3080, 32G DDR5 RAM. 2 x m.2.
          RIG 2: Laptop Dell G15: Windows 11, Intel i9 12th Gen. RTX3070ti, 16G RAM (DDR5), 2 x NVME M.2 SSD.
          RIG 3: Apple Laptop: rMBP i7, 8gig RAM 256 SSD, HD, OS X 10.12.12

          1 Reply Last reply Reply Quote 0
          • primaldivine
            primaldivine last edited by

            HI Graham,
            For my recent project I used two watched folders.
            Here's the process:

            Capture Camera to Disk to a Watched folder called (lets call it 'Moviefolder'): this places a filename.mov quicktime of 0.2 secs long, which is the minimum length that Isadora succeeds to capture.
            Next step is that a folder action script watching the folder where the movie just arrived is triggered and calls a bash shell .sh file that extracts a couple of jpegs from the movie file and moves one of them into another folder called (lets call it 'PictureFolder'). That second folder uses the Applescript that autoloads any media arriving in that folder to load to Isadora's meda bin.
            Ta da!  Now I have a jpg instead of a movie.

            There are some more details involved. In order to process the .mov into a couple of jpgs, I installed Macports and then ffmpeg. Then I can use a bash file to tell ffmpeg to extract the jpgs from the .mov
            I'll attach an example .sh file and the associated Applescript file.
            Have really enjoyed learning how to do this. It's empowering. :)

            A word of warning however, is that occasionally the watched folder simply does not run the Applescript, which seems to be an Apple bug. It works 97% of the ime, but every now and then fails to run, on Mavericks and on Yosemite, which is very annoying if you have a long-running installation.

            5c2eb4-convert-bash-applescript-example-jg.zip

            Pro-User Latest Beta - MacBook Pro i7 2.66GHz SSD
            www.jamiegriffiths.com Arctic Canada
            www.chickweedarts.com

            1 Reply Last reply Reply Quote 0
            • primaldivine
              primaldivine last edited by

              Incase anyone wants it, here is the watched folder Applescript that loads any media arriving in that folder automatically into Isadora's media bin.
              I'll could a blog tutorial on how to use it, if people need more instructions on how to use it?

              Make sure you edit the script to match your version of Isadora. I am using the USB version, so you may need to adapt the application name in the script if you are using the standard version.

              641ffe-watch-isadoracore-mediabinload.scpt.zip

              Pro-User Latest Beta - MacBook Pro i7 2.66GHz SSD
              www.jamiegriffiths.com Arctic Canada
              www.chickweedarts.com

              1 Reply Last reply Reply Quote 0
              • crystalhorizon
                crystalhorizon Beta Platinum last edited by

                have to try that, sounds pretty cool 

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

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