Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Opening a file from a Folder and running a script

Return to Member Forum

  • Author
    Posts
    • #91649
      Masood Ahmad
      Participant

      Hi,

      I have a scenario and looking for a solution, a JavaScript

      Here are the details:

      1. The user will create a Watch Folder on Desktop (Mac/PC) for example: “myScriptFolder” with a sub-folder called “Output”.

      Scripting part…
      2. Whenever a user puts an Illustrator/InDesign file in the Watch Folder “myScriptFolder”. The file should be launched in its respective application. Let’s concentrate here on Illustrator only.
      3. Once the file is opened in the Illustrator. The application should run a JavaScript called “myStartScript.jsx”, located in the Script folder of Illustrator (Oops, I don’t know the location of the Scripts panel of Illustrator).
      4. Once the script is run, the file should be saved to the “Output” sub-folder.

      In a nutshell, I would like to run a JS on a file, without going through the routine procedure.

      Thanks in advance.

    • #91650
      Anonymous
      Inactive

      Hi Masood,

      First of all, take care that you may be violating the Adobe InDesign and Illustrator EULA as none of those apps have to be run as server. The only grey area is when the licence owner is the one to run the automation process.

      But given that it would be the case, then it mostly depends on your OS.

      On mac, you could use folder action sto run an applescript (which can only be here to call a javascript file ).
      On Windows I don’t know.

      And Illustrator hasn’t any script panel. They can be only run through the File/Scripts menu. However script of yours can be placed in the preset folder whose location depends on the OS.
      On mac, that would be
      /Applications/Adobe Illustrator XX/Presets.localized/xx_XX/Scripts

      Loic

    • #91651
      Masood Ahmad
      Participant

      Hi Loic,

      Thanks for your suggestions. However, I think I’m not violating any EULAs as I have license versions of Adobe products on my system, properly installed and I’ll be the only person doing this. The reason, I’m looking for such a script is to avoid doing the things manually.

    • #91759
      Masood Ahmad
      Participant

      Any clues…

    • #91764
      Anonymous
      Inactive
Viewing 4 reply threads
  • You must be logged in to reply to this topic.
Forum Ads