Copy link to clipboard
Copied
Hi there, is it possible to define a start folder when using selectDialog ? It seems to start by default from the desktop, but would it be possible to start the search from let's say C:\some folder\some other folder\my indesign documents ?
This way I can save myself quite some clicks 🙂
Thanks,
Koen
Hi,
If your start folder is myFolder
use
myFolder.selectDlg() to open dialog with myFolder selected.
hope...
Copy link to clipboard
Copied
Hi,
If your start folder is myFolder
use
myFolder.selectDlg() to open dialog with myFolder selected.
hope...
Copy link to clipboard
Copied
... and you must use selectSlg rather than selectDialog' which
"
according to the JS reference.
Copy link to clipboard
Copied
Thanks, did the trick indeed
Just in case someone else would like to do this, remember that your folder must have double slashes to make it work, did make me sweat for a while 🙂
example :
var selFolder = "D:\\somefolder\\somefolder\\here_we_are"
var myFolder = Folder(selFolder).selectDlg("Select a folder with InDesign files");
Copy link to clipboard
Copied
Better to use this:
var selFolder = "/D/somefolder/somefolder/here_we_are"
so that your script works on Macs too.
Peter
Copy link to clipboard
Copied
Hi,
I know it's the URI Path, but as 'D:' is the drivecharacter which is mapped over the drive will it work on a mac¿!
Hans-Gerd Classen
Copy link to clipboard
Copied
You've got me there. I don't know.
Peter
Copy link to clipboard
Copied
Hi,
don't wonna 'get you there', but wasn't aware of it till last sunday ...
Hans-Gerd
Copy link to clipboard
Copied
from a recent script i did:
var myFolder=Folder(app.activeDocument.filePath).selectDlg("PDF folder:");
Copy link to clipboard
Copied
Since the title doesn't specify inDesign, and other application users might end up here (like myself), here's how you do it in illustrator:
var dest = Folder(app.activeDocument.path).selectDlg();