New session : escape "warning" window, go to Capture folder
We just built an applescript to create new session for CO (v.8~10) (thanks to Rick Allen for his indirect help).
It works fine so far, except two things we’ll like to fix to get it first class :
1) When launching C.O., it always (if not wrong) tries to open last session (or catalog; but we don’t make catalogs). If last session missing, or has been moved, then the “No recents catalogs or sessions†popup, warning like window shows up and C.O. icon keeps bouncing in the dock… Annoying… Could not find a way to escape this. Did try “Escape key codeâ€, etc. within the script to cancel/close this window to keep the script progression, but no success.
When escape key is manually pressed on keyboard, this "gate" window then hidden, script goes on...
2) When new session has just been completed, no folder within the session itself is selected. It will be great if the whole session folder being unfolded, the session Capture folder was "discovered", selected.
The “browse document to path text†from Capture One Suite > Commands might be the rosebud here, but no blossom success...
Thank you in advance for any scripting suggestions concerning those two (scratching) points.
It works fine so far, except two things we’ll like to fix to get it first class :
1) When launching C.O., it always (if not wrong) tries to open last session (or catalog; but we don’t make catalogs). If last session missing, or has been moved, then the “No recents catalogs or sessions†popup, warning like window shows up and C.O. icon keeps bouncing in the dock… Annoying… Could not find a way to escape this. Did try “Escape key codeâ€, etc. within the script to cancel/close this window to keep the script progression, but no success.
When escape key is manually pressed on keyboard, this "gate" window then hidden, script goes on...
2) When new session has just been completed, no folder within the session itself is selected. It will be great if the whole session folder being unfolded, the session Capture folder was "discovered", selected.
The “browse document to path text†from Capture One Suite > Commands might be the rosebud here, but no blossom success...
Thank you in advance for any scripting suggestions concerning those two (scratching) points.
0
-
If you launch Capture One with the alt key pressed, it will bypass the previously closed document, if that helps.
With regards to the second issue, be sure that you're telling the document to browse to the capture path and not the application.0 -
Thanks a lot Ben_US for your quick help and fine guess : you were right, I was addressing the wrong handler when calling/browsing for the Capture folder.
Your suggestion as raw diamond, here a modest finally shining stone :
set newSession to "MySession"
set newSession_path to POSIX path of (path to desktop as text)
tell application "Capture One 10" -- or "Capture One" (v.8), or "Capture One 9"
activate
set this_newSession to make new document with properties {name:newSession, path:newSession_path}
tell this_newSession
browse to path (newSession_path & newSession & "/Capture") as text
end tell
return
end tell
But concerning the first issue, pressing Option key (Alt key on Mac, isn't ?) nothing changes (C. O. versions 8 to 10), I still get the opening of sessions choice window. Even if new session making behind is finely processed...
Never mind, spasmodic bouncing C.O. icon in the dock won't deny that huge firm step done tonight.
Thank you.0
Post is closed for comments.
Comments
2 comments