Photo Supreme tips, tricks and scripts…

-A [data files folder] Use it to store application data in a custom defined folder instead of the Windows standard folder (%localappdata%).
e.g.: -A "D:\My IDimager\PSU-appdata"
-regfile [registry file] By using this option, PSU will not store any data in the registry; instead the data will be stored at the location you have defined.
e.g.: -regfile "D:\My IDimager\mydata.idreg"
-L [Language] With this parameter you can switch the GUI Language.
e.g.: -L NL  valid parameters are NL, EN, DE, FR

-D [Database name] Use this to open PSU with a specific Database


Software Tag: When you use %exif:Software (e.g. for a custom thumb info) to identify what Software has been used to edit the image, then you may not want PSU to update this property.
Don't update: WriteToRegistry('', 'UpdateSoftwareTag', 0);
Update: WriteToRegistry('', 'UpdateSoftwareTag', 1);
Image Counter: Sometimes the image counter may slow you down. With a little script you can switch it
off: WriteToRegistry('', 'ShowCatCounters', 0); and on again: WriteToRegistry('', 'ShowCatCounters', 1);
You need to restart PSU to take effect after running that little script!
FileName in Title: A way to say whether PSU should place the filename in the Title or not would be WriteToRegistry('', 'AllowFileNameAsTitle', 0);The value 0 will leave the title empty while the value 1 will set PSU back to the default behavior (writing the file name into the title field)

Lap Columns: To change the number of columns in the Label assignment panel you can use this script:

WriteToRegistry('LAP', 'Columns', 3); (This would give you 3 columns)
To revert to automatic column calculation delete the registry key \HKEY_CURRENT_USER\Software\IDimager Systems, Inc.\IDI\LAP


Synchronous Mode: This setting allows you to change the synchronous mode used by PSU to increase database security. But using the synchronous mode 2 will have an impact at the overall performance of PSU! 
WriteToRegistry ('', 'Synchronous', 2); to switch switch back to default WriteToRegistry ('', 'Synchronous', -1); More info about the synchronous mode can be found here:
Cascade Metadata: This setting will propagate the star rating and color label within a version set. A value of 0 will set it back to default
Options.CatalogMetaCascadeStyle := 1;
PublicBroadcast (nil, 'SaveOptions', nil);
SQLite scratch folder: This setting will move the SQLite scratch folder to somewhere else
WriteToRegistry('', 'SQLiteTempDir', 'c:\your folder here\');

Set preview quality: Use this script to change the quality setting  from the default value (95) to 90
This script will works on both SQLServer and SQLite versions:

Options.MediumQuality := 90;    // current application default = 95
PublicBroadcast(nil, 'SaveOptions', nil);
Say ('done');
If you use a converted IDimager Database you might need to run this little script:
Say ('done.');
The database will grow quite a bit especially when it has run on a converted IDimager V5 database. 
When you need an indicator for images that are offline you can use this line:
%code result := iif(not WideFileExists(ImageItem.Filename), 'O', ''); %/code
When you need an indicator for images that are write protected you can use this line:
%code result := iif(WideFileIsReadOnly(ImageItem.Filename), 'R', ''); %/code

You can find a more sophisticated script here.

When you need to call a script (e.g. to set the wallpaper point to the script: Set as Wallpaper.psc)

Did you know that you can use Custom XMP created for IDimager V5 in PSU?
As a example I use the Darwin Core XMP Metadata Schema by Frank Bungartz.
Download and extract both files and copy them into the folder: %localappdata%\IDimager Systems, Inc.\EditorSchemas
Next time when you open PSU you can access the XMP schema in the image detail panel.

Custom Thumb Info:  This script is using the %exif:Software tag to identify the Software you used to edit the image and will display GPS when the image contains GPS coordinates. When the image is a RAW file it will display RAW, otherwise the file extension will be displayed.

// add software ID
if Pos('Capture', '%exif:Software') = 1 then
result := result + 'NX2'
else if Pos('Photoshop', '%exif:software') <> 0 then
result := result + 'CS4'
else if Pos('Bibble', '%exif:software') <> 0 then
result := result + 'BIB'
else if Pos('Ver.1', '%exif:software') = 1 then
result := result + 'CAM'
else if Pos('', '%exif:software') = 1 then
result := result + 'IDI'
result := result + '-?- ';

// add file type [RAW] or File extension
if ImageItem.isRaw then
result := result + ' ' + WideUpperCase('%FileExtension') + ''
result := result + ' ' + WideUpperCase('%FileExtension') + '';

// add GPS indicator
if ImageItem.HasGPS then
result := result + 'GPS';