1 Reply Latest reply on Aug 11, 2009 10:19 AM by sudar1983_14

    FolderDialogBox Selection

    Shail1202

      Hello All,

       

      If user does not select folder and click on Cancel button....can it be possible to give user to reslect the folder with alert saying "select folder and try again"

       

      Set myFileSystemObject = CreateObject("Scripting.FileSystemObject")
      myJavaScript = "myFolder = Folder.selectDialog(""Choose a Folder""); myFolderName = myFolder.fsName;"
      myFolderName = myInDesign.DoScript(myJavaScript, idScriptLanguage.idJavascript)

       

      Thanks,

      Shail1202