メインコンテンツへスキップ

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

Recipe scripting

コメント

2件のコメント

  • Eric Valk

    What you have here is a debugging problem. I suggest you install a copy of Script Debugger (you can get a free trial version, although its well worth the money) load your script, set debugging on, and step through your script. You can watch the recipeds appera and disappear using the explorer window. You will easily be able to see when and where it goes wrong.

    0
  • Laurence Gibson

    Thanks Eric, 

     

    I found the bug,

    recipes persist throughout documents, so in order to avoid them popping up again you have to clear them from all documents. Obviously capture one needs at least one recipe so i came up with this, to clear recipes before creating new one and seems to have done the trick:

     

     

    tell application "Capture One 21"

    try

    set recipeNo to count recipes of documents of application "Capture One 21"

    set deleteNo to recipeNo - 1

    if recipeNo is greater than 1 then

    repeat deleteNo times

    delete recipe 2 of documents of application "Capture One 21"

    end repeat

    end if

    end try

    end tell

    0

投稿コメントは受け付けていません。