Wait for HDR processing
I wrote an Apple Script for Capture One to click on menu items to merge HDR images.
This is my process:
- Select last
- Send keystroke Shift + right five times to select the last five photos
- Merge to HDR with default
- Delay 1 minute
- Select previous set
I repeat this for the number of HDR stacks in the folder but I am trying to find a way to eliminate the delay and check if the processing is done. Is there a way to do this using Apple Script?
-
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.Method
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.0 -
hi, do you make it works? really need this
0 -
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
repeat
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 tellIn 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.0 -
Marsh Ray Does this script work with 5 or 7 shots?
0
Please sign in to leave a comment.
Comments
4 comments