4 Replies Latest reply on Jun 10, 2018 6:24 AM by manuelb27477138

    Absolute Path on Mac to Batch process multiples scripts

    manuelb27477138 Level 1

      Hello to everyone!

       

      I run multiples scripts with my batch.jsx file:

       

      function batch()
      {
         var f1 = File ( "/Users/dev/Library/Preferences/Adobe\ InDesign/script_1.jsx" );
         var f2 = File ( "/Users/dev/Library/Preferences/Adobe\ InDesign/script_2.jsx" );
         var f3 = File ( "/Users/dev/Library/Preferences/Adobe\ InDesign/script_3.jsx" );
      
         app.doScript ( f1 );
         app.doScript ( f2 );
         app.doScript ( f3 );
      }
      
      batch();
      

       

       

      Is possible get the absolute path without write manually the path:

      /Users/dev/Library/Preferences/Adobe\ InDesign/

       

      In this way, when I share this script will work on any Mac computer.

      Thanks!

       

       

      /Users/Users/production/Library/Preferences/Adobe\ InDesign///Users/production/Library/Preferences/Adobe\ InDesign/production/Library/Preferences/Adobe\ InDesign/