This content has been marked as final. Show 6 replies
You can use the function openDlg instead of openDialog. Look it up in the reference file under File Object Functions.
I tried this on my computer, using CS2 on a Windows box:
b var AFile = new File("//Filer10"); // Also used \\Filer10 and \\\\Filer10 and ////Filer10
b var MyFileObject = AFile.openDlg("Walk the tree to your destination...", '\\Filer10');
The dialog appears showing the root of the C: drive (i.e. C:\), and in the filename field only the string, "Filer10" appears. Various derivations on the
b new File()
command does not seem to make a difference.
The user can add the double-slash and navigate the Filer10 server from there, but I cannot find a way to include the double-slash in the first place.
If you had a different idea of how I should use it, please let me know.
I don't understand what's this double slash you're using. Is this file on a network drive? If so, I think you will have to mount it.
Yes, the double slash indicates a server. On the Windows machine where I am developing the script, it is auto-mounted with an ActiveDirectory script.
I need to consult the reference files, but I don't think you can access it that way. You need to have it mounted as a drive (let's say G:\), and then access that using a regular path "/G/Filer10", or something like that).
Actually, you can. As I said, if I try "\\Filer" then I get "Filer"
in the filename field, and the default folder is made the root directory of the C: drive. I can then add the double slash and I go directly to where I want to be on the server network (or at least the starting point).
Its just that the dialog box has a problem seeing the double slash when it starts up.