Zum Hauptinhalt gehen

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

get tool name or id

Kommentare

2 Kommentare

  • Emory Dunn
    You could try just collapsing them all like so:


    tell front document of application "Capture One 12.0"
    set expanded of tools of tool tabs to false
    end tell


    and then expanding them all again at the end. Or, if you need to restore the state, loop through each tool, store its expanded state and ID, collapse them, then loop through again and loop up the previous state.
    0
  • Eric Valk
    Here a bit of code that just collapses the tools on th selected tooltab, and remebers the state of each tool, so that after the script actions are done, each tool can be reset to its previous state.


    tell front document of application "Capture One 12"
    --tell (tool tab whose selected is true) -- Fails

    set {ttRefList, ttSelectedList} to get {it, selected} of every tool tab
    set ttRefCollapsed to null
    repeat with ttCtr from 1 to count of ttSelectedList
    if ttSelectedList's item ttCtr then
    set ttRefCollapsed to {(ttRefList's item ttCtr), every tool, every tool's expanded}
    set ttRefList's item ttCtr's tool's expanded to false
    exit repeat
    end if
    end repeat
    end tell

    The Applescript commands tell tool tab whose selected is true and get tool tab whose selected is true should work but don't.
    It looks like Phase One has not implemented Range Filtering for Tool Tabs, although the Capture One Applescript dictionary says that it should work.
    0

Post ist für Kommentare geschlossen.