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

Re-Setting Favorites folder

Comments

1 comment

  • Emory Dunn
    You can remove favorites with the following script:


    tell front document of application "Capture One 12"
    delete (every collection whose kind is favorite and user is true)
    end tell


    This one will create create an album for the capture folder and add all of the variants. However, Capture One throws an error when making an album with the same name as the Capture Folder even though adding an album from C1 works. This might be a bug in how C1 handles making new collection from AppleScript. As a work around the album gets " 1" at the end.


    tell front document of application "Capture One 12"

    set captureCollection to item 1 of (collections whose kind is favorite and id is "capture")
    log name of captureCollection as string
    set captureDir to captures

    tell application "Finder" to set captureName to (name of folder captureDir)

    try
    -- C1 throws an error when making an album with the same name as the Capture Folder
    -- even though adding an album from C1 works
    set tempName to captureName & " 1"
    if (count of (collections whose kind is album and name is tempName)) is equal to 0 then
    set newAlbum to make collection with properties {name:tempName, kind:album}
    add inside newAlbum variants every variant of captureCollection
    end if
    on error errMsg
    log errMsg
    display dialog errMsg buttons {"OK"} default button "OK"
    end try

    end tell
    0

Post is closed for comments.