New session : escape "warning" window, go to Capture folder

Discussion regarding all scripting related questions
Please DO NOT post to this thread anything that is not directly related to scripting of Capture One.

New session : escape "warning" window, go to Capture folder

Postby PPP » Fri Oct 20, 2017 3:44 pm

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.
Capture One 10 (last) • Media Pro 2.1.0.161 • Canon 5D MarkII, Mac with Sierra (10.12.6).
PPP
 
Posts: 47
Joined: Wed Sep 24, 2008 2:19 pm
Location: Tokyo

Re: New session : escape "warning" window, go to Capture fo

Postby ben_US » Fri Oct 20, 2017 7:56 pm

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.
Please make a support case for Technical Support with Capture One software:
http://support.phaseone.com and click on Contact Support, then select Technical Support.
ben_US
Crew
Crew
 
Posts: 399
Joined: Mon Feb 01, 2016 9:51 pm
Location: New York, USA

Re: New session : escape "warning" window, go to Capture fo

Postby PPP » Sat Oct 21, 2017 4:51 pm

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 :
Code: Select all
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.
Capture One 10 (last) • Media Pro 2.1.0.161 • Canon 5D MarkII, Mac with Sierra (10.12.6).
PPP
 
Posts: 47
Joined: Wed Sep 24, 2008 2:19 pm
Location: Tokyo


Return to Scripting



Who is online

Users browsing this forum: No registered users and 2 guests