Applescript Support would be great

Issue #28 resolved
Former user created an issue

Adding Applescript support to the GUI version of Subler could make the CLI version unnecessary. Since the GUI version has more features (like Metadata search) and it isn't implemented in the CLI version yet, it would be great if you could implement that to the CLI version or add Applescript support to the GUI version.

Here is a good starting point: http://chris.paveglio.com/blog/?p=42

Comments (8)

  1. Alex K

    Please, at least add the ability to add files to the queue and to start the queue via apple script, and some events to determine whet processing for each item in the queue is complete.

  2. Alex K

    Me too :-) It doesn't seem to be possible to dispatch or receive any events via AppleScript, so it would be nice instead to have an option in preferences that will allow to run certain script file when queue is completed.

  3. Damiano Galassi repo owner

    I found it's possible to suspend a script, so for example if you have:

    tell application "Subler"
        add to queue "file.mkv"
        start queue with waiting until completion
    
        --do whatever you want with the converted file--
    end tell
    

    it can wait on start queue until it has been completed.

  4. Damiano Galassi repo owner

    Some basic queue support is already in. If you want a specific AppleScript command please open another issue.

  5. Log in to comment