Skip to main content

Script to find Images not in any User Collection (CO12-CO21)

Comments

7 comments

  • Markus Stamm

    Hi Eric,

    thanks so much! This is extremely helpful.

    I successfully just ran this on my two main CO21 catalogues (CO21 Build 14.0.0.275 on macOS 11.0.1).

    One remark, though: in searchDocument the script searches for the Collection "All Images", which only exists if the system or app language is set to English. For other app languages, the script runs into an error, because the name of that collection is localized. I solved this by setting the app language for CO21 to english, a better approach might be to make the name of the collection containing all images one of the user changeable variables at the top of the script.

    0
  • Eric Valk

    Hi Markus

    I had suspected such a problem, I didn't think of your solution.

    I will make an update accordingly.

    Eric

    0
  • Eric Valk

    Hi Markus

    With the system app langauge set to your native language can you run the following code and report the result. Does it correctly identify the name of thee "All Images" folder?

    use AppleScript version "2.4" -- Yosemite (10.10) or later
    use scripting additions

    tell application "Capture One 12" to tell first document to set allImagesnames to {name of first collection whose user is false and kind is smart album, name of first collection}
    log allImagesnames

     

    0
  • Markus Stamm

    Hi Eric,

    this is the result in the log window (and yes, "Alle Bilder" is the correct localized name for the collection, so this obviously works):

    tell application "Capture One 21"
    get name of collection 1 of document 1 whose user = false and kind = smart album
    --> "Alle Bilder"
    get name of collection 1 of document 1
    --> "Alle Bilder"
    end tell
    (*Alle Bilder, Alle Bilder*)

    0
  • Eric Valk

    Hi Markus, I will make an update accordingly.

    As of this morning I have lost the ability to use the the "code" format in in a forum posting, I don't yet understand if it is a browser cache issue or something with forum. Until I solve this I cannot post any more long scripts.

    If you were to do a replace operation, replacing collection "All Images" with  first collection then I think it will run and be independent of localisation  (It runs for me)

    0
  • Markus Stamm

    Hi Eric,

    thanks again. I just tried your suggestion and "first collection" seems to work as expected.

    The code format seems to be gone in the edit window, while it still is available for new replies. So, I assume it's a forum issue.

    0
  • Eric Valk

    Hi Walter, would you add it for me? I'm a little short of time and I would need to re-learn the proceedure.

    0

Please sign in to leave a comment.