question about Rename & Download by Prefix Import Script

Post Reply
PhilBurton
Posts: 307
Joined: 12 Sep 10 17:47
Location: CA, USA

question about Rename & Download by Prefix Import Script

Post by PhilBurton »

I was reading through the file DownloadByPrefix_RenameRule.txt, which is part of the zip file for this script.

The notes for this file include:

// - This script is designed to be used with the downloader pre-script
// "Download by Prefix", as it manages some of the registry keys used
// by this script.

However, when I looked in repository.idimager.com, I could not find the Download by Prefix script. Where can I find it?

Phil
Photo Supreme user
Home built i7 3930, 32 GB RAM, Win 10 Pro 64, latest version of Photo Supreme 3, Lightroom 6 and Photoshop CS 6 (perpetual licenses)
fbungarz
Posts: 1826
Joined: 08 Dec 06 4:03
Location: Arizona, USA

Re: question about Rename & Download by Prefix Import Script

Post by fbungarz »

Hi Phil,
sorry for the confusion. All the files that you need are included in the ZIP archive that you can download from the resource repository:
http://repository.idimager.com/openreso ... 2408FCE4B0
Just click the Download Button and open the archive, where you will find everything that you need.
Here also the direct link to the download:
http://repository.idimager.com/download ... 2408FCE4B0

I hope this will work for you. Let me know if the instructions need to be updated.
Cheers,
Frank
PhilBurton
Posts: 307
Joined: 12 Sep 10 17:47
Location: CA, USA

Re: question about Rename & Download by Prefix Import Script

Post by PhilBurton »

fbungarz wrote:Hi Phil,
sorry for the confusion. All the files that you need are included in the ZIP archive that you can download from the resource repository:
http://repository.idimager.com/openreso ... 2408FCE4B0
Just click the Download Button and open the archive, where you will find everything that you need.
Here also the direct link to the download:
http://repository.idimager.com/download ... 2408FCE4B0

I hope this will work for you. Let me know if the instructions need to be updated.
Cheers,
Frank
Frank,

Thanks for this link. I had already downloaded this ZIP. I asked my question after reading the comments from the txt file in that zip file and trying to understand the code. Of course, I don't know how to program in the Pascal language that is used for scripting, but I think I could puzzle it out. The prefix variable seems to be set externally, in a separate script, but I couldn't find that script.

What I would need to do is re-write the scripts to rename files according to date and time and also store in subdirectories based on date.

Phil
Photo Supreme user
Home built i7 3930, 32 GB RAM, Win 10 Pro 64, latest version of Photo Supreme 3, Lightroom 6 and Photoshop CS 6 (perpetual licenses)
fbungarz
Posts: 1826
Joined: 08 Dec 06 4:03
Location: Arizona, USA

Re: question about Rename & Download by Prefix Import Script

Post by fbungarz »

Hi Phil,
NO need to write anything in Pascal. Everything is there included in the ZIP !!!
Sorry, if my instructions keep confusing you.

Here is what you do:
(1) hit import - more settings.
(2) enable "copy images to new location"
(3) click "more copy settings"
(4) In file name choose "custom defined"
(5) from the popup box delete the first entry "%FileName"
(6) hit the big "+" sign at the bottom of that box and choose "add script code part"
(7) replace the text that per default is in that box (result := 'hello world';) with the script in the text file named "DownloadByPrefix_RenameRule.txt"
(8) hit OK followed by Apply
(9) now put a checkbox in front of "scripting" and select "run a script before starting the profile"
(10) depending on your preferences either choose "DownloadByPrefix_noButton.psc" or "DownloadByPrefix_withButton.psc"
(12) save the profile
(13) try out the profile on your pairs NEF+JPG pairs

I hope that makes sense.
...rename files according to date and time and also store in subdirectories based on date
Now - it should be possible to tweak the rename rule to further accommodate your needs without additional scripting. The first one is easy. I do it all the time: again, under "Copy images to new location..." choose sub-folder and choose any one of the rules you like, how the subfolder should be named or create your own rule. My own subfolder rule is "%yyyy\%yyyy-%mm\%yyyy-%mm-%dd\", which sorts the files into folders "..\\year\year-month\year-month-day".
Now, regarding renaming the files, it might be possible to add any parameters to the script part of your renaming rule. To do this open again the file name - custom defined popup box and again using the "+" sign at the bottom of the box to add what parameters you like, in your case the date (via "add date part - photo date part ...").
Now that would likely append the date to the file names. Moving it up in front of the script should add the date first, followed by the prefix, followed by the sequential number. However, I am not completely certain, placing it in front of the script may inter with the script.

Experiment a bit and if this does NOT work, you could use the script to download and rename the files, which will then be pairs of files in a version set of named identically with a prefix and sequence number, different only by their extension (NEF vs. JPG). Appending the dates to these files names after download would only need to invoke one additional renaming step immediately after the download. You also could create a renaming rule that for example simply exchanges the prefix of the files with the date. It would be an additional step, but perhaps not bee too bad...

Cheers,
Frank
PhilBurton
Posts: 307
Joined: 12 Sep 10 17:47
Location: CA, USA

Re: question about Rename & Download by Prefix Import Script

Post by PhilBurton »

Frank,

Thanks for being so patient and explaining things in such detail. I will do some test imports in the next few days and report back.

Phil
Photo Supreme user
Home built i7 3930, 32 GB RAM, Win 10 Pro 64, latest version of Photo Supreme 3, Lightroom 6 and Photoshop CS 6 (perpetual licenses)
Post Reply