Skip navigation

Open Folder

Feb 21, 2011 12:13 AM

  Latest reply: JJMack, Aug 4, 2012 6:30 PM
Replies 1 2 Previous Next
  • JJMack
    6,045 posts
    Jan 9, 2006
    Currently Being Moderated
    Aug 4, 2012 6:32 AM   in reply to ocphotog

    So your script looks like

    var dir = Folder('Q:/Images');

    var selectedFile = dir.openDlg("Select Image" , "Select:*.nef;*.cr2;*.crw;*.dcs;*.raf;*.arw;*.orf;*.dng;*.psd;*.tif;* .jpg;*.png;*.bmp");

    if( selectedFile !=null ){open(File(selectedFile));}

     

    Does the open directory dialog show? If so does it show an empty folder or show your client sub folders? If so do you have a file with one of the following extentions .nef, .cr2, .crw, *.dcs, .raf, .arw, .orf, .dng, .psd, .tif,  .jpg, .png or .bmp in there or in your client sub folders:

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 4, 2012 8:32 AM   in reply to JJMack

    That's the script!

     

    The open directory does show but its the Q: directory. In the box where you would type a filename or something else is the word   Images     .   I can click the OK button and it would take me to the Images folder, but that's an extra step.

     

    Screenshot:

     

    ImageScriptError.jpg

     
    |
    Mark as:
  • JJMack
    6,045 posts
    Jan 9, 2006
    Currently Being Moderated
    Aug 4, 2012 12:23 PM   in reply to ocphotog

    It must be your system. Are you sure you have a Images folder on the Q: disk.  I just created a Images folder on my G: disk and add two folders to it Client1 and Client2 changed the script to "G:/images" Here is what I see

    TestImages.jpg

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 4, 2012 12:42 PM   in reply to JJMack

    It's really odd. I just created a new folder on my Q: drive called   Images2    and put a couple of folders in it.  I then duplicated the script replacing the folder to open from  Images  to  Images2.  The script works fine using   Images2,  but not when using   Images.     Not sure what's causing it but I appreciate your efforts to get it working. Guess I'll have to settle for clicking the OK button to go to that folder.

     

    Thanks again!

    Mark

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 4, 2012 3:53 PM   in reply to ocphotog

    Solved it!  I had some shortcuts named Images, Images2, Images3 that were in the Q: folder. I guess the script didn't know which one to use so it stopped. They all went to the same Images folder.  I deleted those and now it works perfectly.

    Thanks again!

     
    |
    Mark as:
  • JJMack
    6,045 posts
    Jan 9, 2006
    Currently Being Moderated
    Aug 4, 2012 6:30 PM   in reply to ocphotog

    Yes a shortcut Link would take you to the linked folder

     
    |
    Mark as:
1 2 Previous Next

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points