PDA
View Full Version : Custom Button - Open Download Folder
alhayne
July 29th, 2007, 05:00 PM
How do I set up Downloader Pro's custom button so that I can click it to open the folder that I just downloaded all of my images into?
I always save my images to the same folder (E:\New Photos\) with a new folder that has the same name as the Job Code.
So, I guess I can use {J} for the new folder name, but I don't understand the instructions to "use %f for file and %d for folder." What is the exact syntax?
Alan
www.alanhaynes.com (http://www.alanhaynes.com)
DavidB
July 29th, 2007, 10:02 PM
I think you may have come across a bit of a raw edge in the program; certainly, the Help file (unusually for Chris) is not at all clear.
Unfortunately, as Chris is on holiday at present, I'll have to try a bit of guesswork. I think that the %d token may refer to the most recently used download directory path. A command of "explorer.exe %d" might then open the folder you last downloaded to in Windows Explorer. That might be worth trying.
It is even less clear what %f might mean. I'd guess either the first or last file in the most recently downloaded set. But I fear that it's trial and error. At least if you use a file management or viewing application for your tests, you shouldn't do any damage.
I use the BreezeBrowser option, so I'm afraid I cannot easily test these suggestions myself. Even so, I hope that this helps to get you started.
alhayne
July 30th, 2007, 02:25 AM
David,
Thanks for the help. You pointed me in the right direction. The "%d" token does indeed return the most recently entered folder. It doesn't have to be one that actually had something downloaded to it.
Whatever folder is listed in the "download directory:" is returned by the %d token. "Download directory:" is found under preferences in the "Download Path" tab.
In my case, the download directory is always "E:\New Photos\{J}". The {J} token is replaced by whatever is in the "Job Code" field.
So, here's the string for my custom button:
"C:\Windows\explorer.exe %d". Note that you must include the entire path or you'll get an error. Also note that the quotes are not included in the string.
Now, I can just click on my new custom button--which I've renamed "Open Job Folder"--and it will open in Explorer the folder where my images were just downloaded.
Alan
www.alanhaynes.com (http://www.alanhaynes.com)
DavidB
July 30th, 2007, 11:35 AM
Alan
This is very helpful guidance. It's useful to know that you need the full path. I'd done some experiments with Start|Run, which, for Explorer at least, picks up the location from the Windows Path statement (another almost unknown survival from DOS). Obviously, DL Pro cannot do this.
Note for Chris on return. Is it possible to add some information based on Alan's post (and also an explanation of the %f token) to the Help page, which, as noted earlier, is a bit cryptic at the moment?
David
Chris Breeze
August 13th, 2007, 02:40 PM
I'll add the "open in Windows Explorer" command line as an example.
DavidB
August 19th, 2007, 04:04 PM
I'll add the "open in Windows Explorer" command line as an example.
Thanks, Chris. Also, what does the %f token refer to?
Chris Breeze
August 20th, 2007, 11:33 AM
%f refers to the filename of the first image in the list view.
DavidB
August 21st, 2007, 12:20 AM
%f refers to the filename of the first image in the list view.
Thanks again, Chris. It makes eminent sense when you think about it. But it would be worth the explanation on the help page for those of us who are occasionally hard of thinking.
Powered by vBulletin™ Version 4.1.2 Copyright © 2011 vBulletin Solutions, Inc. All rights reserved.