Skip navigation
Currently Being Moderated

open a file in photoshop from indesign

Apr 15, 2011 10:56 AM

Hello,

I been trying to open a photo from indesign to photoshop.

I loop through the selected graphic boxes  which I get the path to the images.

I can get the path easy enough but opening them in photoshop is another matter. I been reading about Bridgetalk, but can't seem to figureout how to get bridgetalk to load the images into photoshop.

 

 

using CS3

 

code:


if (app.documents.length != 0){
   
    if (app.activeWindow.activeSpread.pageItems.length != 0){
       
     for (i = app.selection.length-1; i >= 0 ; i--) {
        
         try{ 
                        
         if(app.selection[i].graphics.length != 0)
               {
                      var  myGraphic =   app.selection[i].graphics.item(0) ;              
                      var myLink = myGraphic.itemLink;
                      var myLinkName = myLink.name;
                      var myLinkFile = File(myLink.filePath);
                      var bt = new BridgeTalk.launch("photoshop");
            ?????????????????

 

                   } //end if                
                 
              }
    catch(err)
       {
           //
        }  
        
    } //end for loop
       
       
    }//end first if
    else {
       
        alert("The active spread does not contain any page items.");
    }
}// end second if
else{
    alert("No documents are open. Please open a document and try again.");
}

 
Replies

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