Color Tag Script for OS finder.

Discussion regarding all scripting related questions
Please DO NOT post to this thread anything that is not directly related to scripting of Capture One.

Color Tag Script for OS finder.

Postby NNN636154345116427085 » Tue May 23, 2017 6:30 pm

Is there a script that will allow me to view color tags from Capture 10 in the OS finder windows?

Many Thanks,

Posts: 1
Joined: Tue Nov 22, 2016 7:01 pm

Re: Color Tag Script for OS finder.

Postby SeanMurp » Tue Aug 01, 2017 3:34 am

This script will convert Capture One color tags to a Finder color tag.

Code: Select all
ell application "Capture One 10"
   -- Finder label index "look up table"
   set colorMap to {2, 1, 3, 6, 4, 7, 5}
   set theVariants to selected variants
   repeat with aVariant in theVariants
         -- determine a Finder color for this variant's CO color.
         set coColor to color tag of aVariant
         set finderLabelIndex to 0 -- no label
         if (coColor > 0) then
            set finderLabelIndex to item coColor of colorMap
         end if
         -- Get a file alias reference for this variant
         set imgFile to (path of parent image of aVariant as POSIX file) as alias
         tell application "Finder"
            set label index of imgFile to finderLabelIndex
         end tell
      end try
   end repeat
end tell

Not sure if that will do what you were hoping. There is
Posts: 62
Joined: Wed Nov 02, 2016 4:30 am

Return to Scripting

Who is online

Users browsing this forum: No registered users and 1 guest