Automatic Batch Processing

Issue #174 new
Former user created an issue

Add a preference to watch for files in a folder to be automatically added to the queue and processed. Then output to another folder with the option to retain the original files or delete them. Just like iTunes has an "automatically add to iTunes" folder.

Comments (5)

  1. Brandon

    It would also be great to specify artwork from a local file when tagging from the queue besides only have the option of iTunes or the default poster.

  2. Ivaylo Stamatov

    This is not a solution - just a note.

    As far as I know macOS supports running scripts when something happens in a folder:

    • Right-click the folder in Finder
    • Under Services, select Folder Actions Setup…
    • Choose a script from the list (yes, nothing seems useful) and click the Attach button
    • Check the Enable Folder Actions checkbox
    • Choose No to the question to run the enabled folder actions on unprocessed files

    There are several problems here:

    1. Scripts are in AppleScript (there's an option for JavaScript, but it is even worse)
    2. You can choose Edit Script, so you can create your own, but… AppleScript
    3. Folders are shallowly watched - changes to sub-folders do not trigger these actions

    I've managed to change the "add - new item alert.scpt" to add an item to Subler's queue:

    on adding folder items to this_folder after receiving added_items
        try
            tell application "Finder"
                set the folder_name to the name of this_folder
            end tell
    
            tell application "Subler"
                activate
                add to queue added_items
            end tell
        end try
    end adding folder items to
    

    When you add any script and hit "Edit Script" Script Editor opens up, but the file is locked. The location where these scripts are located is non-writable (by default) and best is to put your scripts in ~/Library/Scripts/Folder Action Scripts (which doesn't exist and you have to create it).

    Subler supports one more command: start queue, but I decided to not add it after adding the items to the queue.

    Found two Swift libs that claim they offer watching for file system events:

  3. Log in to comment