Is there a way to save the preview commands (e.g., similar to a script) so I can run them as soon as I open three new images?
You can define an alias for the preview command. For example:
alias mypreviews "preview -new -x=10 -y=20 -w=400 -h=250 *"would create an alias command 'mypreviews' that is equivalent to the example preview command in my previous post. Now each time you run:
mypreviewswhat is executed is the sequence between double quotes above (the aliased command).
Another option is creating an environment variable. For example:
export P="preview -new -x=10 -y=20 -w=400 -h=250 *"creates an environment variable P. Now you can simply enter this command:
$Pand the value of P is sent to the console, running the same command as before.
To make an alias or a variable permanent (i.e. automatically created each time you launch PI) you can add the corresponding commands to your startup.scp script, which you'll find on the bin installation folder.
What happens if the Previews already exist on an image? Do I get duplicates?
Yes, new previews are created with the same dimensions and coordinates. The platform ensures uniqueness of preview identifiers by adding suffixes (Preview01, Preview02, and so on).
Hope this helps!