2 Replies Latest reply on Sep 9, 2009 6:55 AM by Ivan Rosolen

    Get linked image path

    Ivan Rosolen



      I want to change a low res image to a hi res image, but I can't get the low res path.


      for (var pageItemIdx = 0; pageItemIdx < myDocument.allPageItems.length; pageItemIdx++) {

        var pageItem = myDocument.allPageItems[pageItemIdx];

          if ( "geometricBounds" in pageItem && pageItem instanceof Rectangle ) {


            try  {

              app.consoleout( pageItem.allGraphics.itemLink.filePath );

            } catch (error) {

              app.consoleout( error.toString() );





      pageItem.allGraphics.itemLink.filePath does not work....using applescript I was able to do it with


      return file path of item liink of image....


      But with javascript I can't