Skip to main content

⚠️ Please note that this topic or post has been archived. The information contained here may no longer be accurate or up-to-date. ⚠️

Scripting NOOB

Comments

7 comments

  • Walter Rowe
    Moderator
    Top Commenter

    I moved this to the Automation - Scripting area where you are more likely to get assistance.

    0
  • Monty

    Thank you

    0
  • Eric Valk

    I highly reccomend Script Debugger, I wish I had started with it instead of floundering around in semi darkness with Script Editor for a year. I now use it all the time.

    1
  • Eric Valk

    Leta say that before you start the script, you select some variants.

    Once starting the script you can use this to make a list of variants that you want moved.

    tell application "Capture One 23" to set variants_list to get every variant whose selected is true

    The hard question is now that the variants are selected and script is running, how do you want to choose/identify the collection (album) where you want to add these variants too?

    If you are running the script standalone (as an application) of from Script Editor or Script Debugger, then while the script is paused, you can choose an album with your mouse. But if you run the script from capture One's Scripts menu, that is not possible.

    If you take the standalone/Script Editor approach, you can pause the script waiting for user input e.g.

    Display Alert "Select target Album, then click OK"
    tell application "Capture One 23" to tell current document to set targetCollection to a reference to current collection

    Now that you have your target collection and your list of variants, and you can proceed with Add Inside

     

    0
  • Eric Valk

    At this link is quite a large script I wrote a few years that may serve as a good general example of an Applescript for Capture One.  Feel free to use any parts that you may find useful.

     

    1
  • Monty

    @Eric
    Oh… My… Gosh…
    There seems to be no end to what can be done!
    Thank you. I will be studying it!

    0
  • Eric Valk

    Start simple. Get one line working at a time. If the line is complex, get part of it working, then add complexity.
    When things fail, as they inevitably will, There is a lot to be learned by observing the Applescript messages and replies.
    Always check the Applescript language guide.
    The Macscripter web site has a ton of useful information.
    Most of the Applescript gurus hang out at the Late Nite SW Forum.

    0

Post is closed for comments.