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. ⚠️

Select specific recipe?

Comments

10 comments

  • John Doe
    The selected recipes are those that are ticked.
    0
  • Sean Murphy
    There is a difference between ticked (aka enabled) versus highlighted (aka selected). If you have a recipe highlighted but not ticked then an error pops up that says: "The selected recipe will not be used for processing because it is not enabled"

    In this case it is referring to the highlighted "SHOPBOP EDITORIAL TIFF" recipe.
    https://commonuse.s3.amazonaws.com/External%20Send%20Files/Selected_Recipe.png

    I'm looking for a way to programmatically highlight the recipe called "SHOPBOP MODEL CASTING JPEG" to avoid this error message. Getting the available recipe names is no problem but making that highlight change is where I'm hung up.
    0
  • Eric Valk
    Hi sran

    Just set "enabled of recipe xxxx to true"
    This script works.

    tell application "Capture One 11" to tell current document
    get recipes
    get enabled of recipe 1
    set enabled of recipe 1 to true
    end tell
    0
  • Sean Murphy
    Hey Eric,
    The enabling/disabling of the recipes only turns them on and off but doesn't change which recipe is selected. So, if the selected recipe is not enabled and you try to process you receive the error I mention in my previous comment.

    This is the code I made for getting the names of all recipes, making a new recipe if not exists and disabling all recipes except for this one.


    tell application "Capture One 11" to tell current document
    if not (exists recipe "SHOPBOP MODEL CASTING JPEG") then make new recipe with properties {name:"SHOPBOP MODEL CASTING JPEG"}

    set recipeNames to name of every recipe
    repeat with thisRecipe in recipeNames
    if thisRecipe does not contain "SHOPBOP MODEL CASTING JPEG" then
    set enabled of recipe thisRecipe to false
    else
    set enabled of recipe thisRecipe to true
    end if
    end repeat
    end tell


    If they already have that recipe when they run the app but have a different recipe selected then the selected recipe becomes disabled but is still selected...therefore getting CO11's error that the recipe won't be used.

    Just trying to avoid this message.
    0
  • Eric Valk
    Hi Sean
    That's harder. You may have a feature request here.

    What if you were to enable the new recipe but not disable any others, and then run the process command? Does that change the selected recipe?
    0
  • Sean Murphy
    Same thing. No change in selection.

    Since creating a new recipe does automatically select it maybe I should find this recipe and delete it each to then create it anew. That would at least assure the right recipe is selected every time with all others disabled.
    0
  • Sean Murphy
    Deleting found recipe and then creating a new one of that name does the trick though adds on another second each time the script is run (which will be about one hundred times per day). Will probably keep it out of this script and let the user know about it (she's very new to CO).

    Where do you submit feature requests?
    0
  • Eric Valk
    [quote="SeanMurp" wrote:
    Where do you submit feature requests?


    You go to Phase One "My Pages", click on "contact technical support", and open a ticket.
    0
  • Rick Allen
    What if you have the "show enabled only" check box ticked. Does that remedy the error?
    0
  • Sean Murphy
    Sure does! Thanks Rick. Though, setting that doesn't appear to be part of Capture One's scripting dictionary as of yet. Will add the request to my ticket. Don't want to get back into UI calls/requiring accessibility rights for each computer.
    0

Post is closed for comments.