Skip to main content

Wait for HDR processing



  • Eric Valk

    If you send CaptureOne a command while the hdr merge is running, it should not respond until the merge is complete.
    However AppleScript will time out if the delay is more than 60 seconds, and ignore any response after that.
    The AppleScript timeout can be changed by adding a “with timeout” clause to the command.
    If I recall correctly “with timeout 0” sets the timeout to infinity, and AppleScript will wait indefinitely until it receives a response.

    After the 5 keystrokes, send CaptureOne some innocuous command like “get count of images with timeout 0”, and AppleScript will wait until CaptureOne responds. Then ignore C1s response and do whatever comes next.

  • FirstName LastName

    hi, do you make it works? really need this 

  • Marsh Ray

    You can modify your script to eliminate the delay and check if the processing is done:

    tell application "Capture One"
        -- Your previous code to select photos and merge to HDR goes here
        -- Wait until the HDR processing is complete
            tell application "System Events"
                if not (exists menu item "Merge to HDR" of menu 1 of menu bar item "Photos" of menu bar 1 of process "Capture One") then
                    exit repeat
                end if
            end tell
            delay 1 -- Wait for 1 second before checking again
        end repeat
        -- Select previous set and repeat the process if needed
        -- Your code to select previous set goes here
    end tell

    In this modified script, the repeat loop checks if the "Merge to HDR" menu item is still present in the Photos menu of Capture One rta check. If it doesn't exist, it means that the HDR processing is complete, and the script exits the loop. This way, you don't need to use a fixed delay, and the script will proceed as soon as the processing is done.

  • Raul T.

    Marsh Ray Does this script work with 5 or 7 shots?


Please sign in to leave a comment.