Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

open a file in photoshop from indesign

Community Beginner ,
Apr 15, 2011 Apr 15, 2011

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.graphics.length != 0)
               {
                      var  myGraphic =   app.selection.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.");
}

TOPICS
Scripting
27.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Valorous Hero , Apr 15, 2011 Apr 15, 2011

You can find an example of how to do this here.

Kas

Translate
Valorous Hero ,
Apr 15, 2011 Apr 15, 2011

You can find an example of how to do this here.

Kas

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 19, 2011 Apr 19, 2011
LATEST

Thanks thats what I needed was a great sample...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines