Generate a list off offline images?

Discussions, questions, comments and suggestions regarding Capture One PRO, Capture One PRO(For Sony), Capture One DB and Capture One Express(For Sony) 11.x for Mac

Generate a list off offline images?

Postby Mark BCN » Sat Jul 14, 2018 2:28 pm

Does anyone know if it is possible to have CO11.2 display a list of offline images?

When moving a large catalogue to a new disk I found that several of the referenced files were missing, but having tried to fix the problem I can not find any practical way to check that there are not still some missing files short of going through the entire catalogue one by one...
Mark BCN
 
Posts: 46
Joined: Mon Aug 19, 2013 6:47 pm

Re: Generate a list off offline images?

Postby Mark BCN » Sat Jul 14, 2018 8:11 pm

Ok, I am going to answer my own question...

Since I could not find any way to do this, I wrote an Apple Script (https://transienteye.wordpress.com/capture-one-resources) which will check a selection of images to find those that are offline and copy the paths of any offline images to the clipboard.

I think that I should be able to do this using the "Folders" tool, which normally marks folders/disks which are offline. However: I have at least one catalogue in which there are offline images (due to changing the disk they are stored on) yet nothing shows up in the folders tool as missing. Using the script I can at least find the offline images and relocate them manually (a tedious task, as it can only be done one image at a time - although at least I can tell if they are all done now!).

It would be possible to automate the correction of the image file locations, except that the path attribute of the image in CO11.2 appears to be read-only...
Mark BCN
 
Posts: 46
Joined: Mon Aug 19, 2013 6:47 pm

Re: Generate a list off offline images?

Postby Eric Nepean » Sun Jul 15, 2018 5:49 am

Mark BCN wrote:Ok, I am going to answer my own question...

Since I could not find any way to do this, I wrote an Apple Script (https://transienteye.wordpress.com/capture-one-resources) which will check a selection of images to find those that are offline and copy the paths of any offline images to the clipboard.

I think that I should be able to do this using the "Folders" tool, which normally marks folders/disks which are offline. However: I have at least one catalogue in which there are offline images (due to changing the disk they are stored on) yet nothing shows up in the folders tool as missing. Using the script I can at least find the offline images and relocate them manually (a tedious task, as it can only be done one image at a time - although at least I can tell if they are all done now!).

It would be possible to automate the correction of the image file locations, except that the path attribute of the image in CO11.2 appears to be read-only...

Hi Mark
There is a scripting forum for Capture One, https://forum.phaseone.com/En/viewforum.php?f=70 where you will find more like minded people. You might want to post your script there.

I have posted a script that does something similar, but I see that it is buried in antiquity https://forum.phaseone.com/En/viewtopic.php?f=69&t=25615&p=119975&hilit=missing#p119953. The memeory limitation mentioned regrarding retrieving all images is no longer true.

What is true is that for a very large catalog, it is far faster to do Applescript operations on "every image" than on "selected images" https://forum.phaseone.com/En/viewtopic.php?f=70&t=28421&p=136180#p136180

I have also posted scripts that make a list of all collections holding an image, and a list of all images not in any collections
https://forum.phaseone.com/En/viewtopic.php?f=70&t=27864
https://forum.phaseone.com/En/viewtopic.php?f=70&t=27903&p=133410#p133410

One strategy for reconnecting large number of images with their files is to use the the C1 locate command in the "Dolders" section of the C1 library. If you right click on a folder and select "Locate" then this allows you to tell C1 that this folder of images (and all folders below it) is located somewhere else.

This only works if the the image files have not been "resorted" In that case I am not aware of any good solution.
Eric Nepean
 
Posts: 628
Joined: Sat Oct 25, 2014 8:02 am
Location: Ottawa

Re: Generate a list off offline images?

Postby Mark BCN » Sun Jul 15, 2018 9:39 am

The problem that I had was that somehow I had ended up with about a thousand images which were in the catalog and marked as offline (due to the disk change), but with no corresponding entries in the Folders tab. The per-file locate command worked fine, but doing this manually for each image was not viable and there was no easy way to know if all the affected images had been fixed...

In the end I took a backup of the catalogue and manually changed all the broken path names using an SQL editor. After running a "synchronise" command on the folders, everything seems to be ok...

I will try adding a "all images" command variant - the selected images iteration is agonisingly slow!
Mark BCN
 
Posts: 46
Joined: Mon Aug 19, 2013 6:47 pm

Re: Generate a list off offline images?

Postby Eric Nepean » Sun Jul 15, 2018 8:52 pm

I like your idea of copying results to the clipboard, I'm going to add that to my scripts.

A few more observations:

Where you use an Unix script to check for the file, I use an Applescript query to Finder. The UNIX call takes about 200 ms per file on my system, whereas the Finder query takes about 0.65 ms per file.
Code: Select all
      set imagepath to item ImageCounter of everyImagePathList
      tell my application "Finder"
         if not (exists imagepath as POSIX file) then
         ......


Where possible I get the data item for all the (selected) images and store the result in a list; an individual "get" query to Capture One takes far longer then the per item duration of the "get every" type of query.

Some examples from my system:
  • get selected of 1 variant requires about 70ms; get selected of every variant (16250 variants) requires 229ms
  • get path of parent image of 1 variant requires about 70ms; get path of parent image of every variant requires about 229ms (break even 3 images)
  • get image location of 1 Variant (EXIF Data) requires about 70ms; get image location of every variant requires about 13.7 seconds (break even 200 images)

Capture One has improved the speed of some of these commands, "get selected of every variant" took 36ms/variant in CO 11.1 and in CO 11.2 requires only 0.014 ms/variant.
Eric Nepean
 
Posts: 628
Joined: Sat Oct 25, 2014 8:02 am
Location: Ottawa


Return to Capture One 11.x Software



Who is online

Users browsing this forum: No registered users and 4 guests