'Verify All' on Specific Folder on Launch?

Post Reply
BlackrazorNZ
Posts: 9
Joined: 18 Mar 22 3:24

'Verify All' on Specific Folder on Launch?

Post by BlackrazorNZ »

Hi there,

Is there an easy way to set up Photo Supreme to automatically run a Verify All process on a designated folder when it first opens?

I have a specific folder that I import all new images to to be catalogued, processed and filed. Because that is done across multiple apps, I find myself using Verify All regularly to ensure that external changes are reflected in the Photo Supreme data.

Failing that - is there any way to assign a hotkey to the Verify All command? It doesn't appear to have a hotkey assignment at the moment.

Thank you!
Screenshot 2022-04-07 123828.jpg
Screenshot 2022-04-07 123828.jpg (64.91 KiB) Viewed 1864 times
Hert
Posts: 7870
Joined: 13 Sep 03 6:24

Re: 'Verify All' on Specific Folder on Launch?

Post by Hert »

Here is a script that you can use to start a verification. Check the constants at the top for configuration.

Save this script to a file (e.g. VerifyFolder.psc)

Code: Select all

const
  cFolderToVerify    = 'C:\MyPhotos\_Import\';

  cVerifyMethod      = 1;  // set to 0 for "Verify All"...set to 1 for "Verify Quick"
  cAutoHandleResults = 0;  // set to 0 for False, set to 1 for True

var
  AFilePath: TCatalogFilePath;
begin
  AFilePath := TCatalogFilePath.Create(nil);
  try
    if not PublicCatalog.EnumFilePathForFolder(cFolderToVerify, AFilePath, False) then
    begin
      Say2('Verification Folder not found', cFolderToVerify);
    end
    else
    begin
      VerificationService.VerifyFolder(
        AFilePath.FilePath,
        cVerifyMethod,
        True,
        vfkFull,
        -1,
        cAutoHandleResults = 1,
        WideFormat(Translate('Verifying %s'), [AFilePath.FilePath]),
        '',
        ''
      );
    end;
  finally
    AFilePath.Free;
  end;
end;
Then start PSU with the -runscript parameter (check the Maintenance manual) to automatically start the script when PSU starts.
This is a user-to-user forum. If you have suggestions, requests or need support then please send a message
Ralf
Posts: 134
Joined: 19 Jan 19 13:37

Re: 'Verify All' on Specific Folder on Launch?

Post by Ralf »

am I doing something wrong with my parameters?
I added runScript to my normal call line but it doesn't run.

Code: Select all

"C:\Program Files\IDimager Products\Photo Supreme 6\IDimagerSU.exe" -a "c:\Users\Ralf\AppData\Local\IDimager Systems, Inc\" -D "E:\PhotoSupreme DB-V6\fotos.cat.db" -runScript "E:\PhotoSupreme-Autostart\VerifyFolder.psc"
no matter what I insert in the script for a directory.
the latter is a local directory, previously on a share

Code: Select all

 ;cFolderToVerify    = 'F:\_Import\';
  ;cFolderToVerify    = '\\Intranetserver\Foto\_Import\';
  ;cFolderToVerify    = '\\192.168.254.4\Foto\_Import\';
  cFolderToVerify    = 'D:\_Import2\';  
Ralf
---------------------------------------------------------------------------------
Hobby photographer with many pictures (> 100000) of the family over generations.
(Excuse my english)
Hert
Posts: 7870
Joined: 13 Sep 03 6:24

Re: 'Verify All' on Specific Folder on Launch?

Post by Hert »

To comment out (disable) a line you should use double slash, not a semicolon
e.g.

Code: Select all

const
  //cFolderToVerify    = 'C:\MyPhotos\_Import\';
  cFolderToVerify    = '\\Intranetserver\Foto\_Import\';

etc
This is a user-to-user forum. If you have suggestions, requests or need support then please send a message
Ralf
Posts: 134
Joined: 19 Jan 19 13:37

Re: 'Verify All' on Specific Folder on Launch?

Post by Ralf »

:oops: :oops: Embarrassing, that was it... Sorry for the trouble
runs perfect
Ralf
---------------------------------------------------------------------------------
Hobby photographer with many pictures (> 100000) of the family over generations.
(Excuse my english)
Post Reply