get properties of current Document

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

get properties of current Document

Postby rapdigital » Mon Jun 04, 2018 3:28 pm

Hey Guys

Made this little discovery tonight.

Code: Select all
tell application "Capture One 10"
   tell current document
      set OpenSession to get {name, path, kind, folder, output, output name}
   end tell
end tell


display dialog "path: " & item 1 of OpenSession & return & "name: " & item 2 of OpenSession & return & "Kind: " & item 3 of OpenSession & return & "folder: " & item 4 of OpenSession & return & "OUT: " & item 5 of OpenSession & return & "Outname: " & item 6 of OpenSession


there are a bunch of other properties available but this is a nice way to get them.

cheers
rapdigital
Certified Professional
Certified Professional
 
Posts: 185
Joined: Mon Feb 02, 2009 1:52 pm

Re: get properties of current Document

Postby SeanMurp » Wed Jun 06, 2018 10:21 pm

Very nice. Thanks for sharing.
SeanMurp
 
Posts: 79
Joined: Wed Nov 02, 2016 4:30 am


Return to Scripting



Who is online

Users browsing this forum: No registered users and 2 guests