Copy link to clipboard
Copied
Copy link to clipboard
Copied
I am looking this same thing, I want to copy a selected image and paste it into photoshop, then, if possible save the image and place back into ID. Does anyone have any tips or even a script available to do this? I'm currently using InDesign CS4 and PhotoShop CS4. I know it's a long shot, but I just thought I'd through this question out there, this is exactly what need.
Copy link to clipboard
Copied
Would this be intended as a way to correct the unfortunate instances when designers paste images into Indesign instead of linking them?
Copy link to clipboard
Copied
Hello Christoph,
Fortunately, no. I have seen them do some very stupid things before, but this is what we have found to be the fastest way to create composites and create new scaled images for printers dpi regulations. I have seen many scripts that will scale and rotate the original placed link. Those scripts may work fine but they don't crop the images to the bleed size as copying from ID and pasting into PS would. This is important because sometimes we are dealing with 1 gig files, then scaling them up creates what is basically an unusable file. Is this something that could logically be scripted? Have you seen one like this?
What we manually do now, which is what I would like to script is: Select image(s) in ID, copy, in Photoshop make a new document, 300 dpi, CMYK, no color management. Then we would paste the clipboard data into this new Photoshop document as a smart object, with the top left corner 0 px, 0 px. Then we save it out using the original links name with an _xxx (xxx is the percent the link was placed in ID) added to the end of the name. We save them as flat tifs with LZW compression to a designated "Scaled Links" folder. Then, we place it in ID at 100%, at bleed.
As you can see, this is a relatively simple task, but can be time consuming if you need to do it 50 times my 3:30 this afternoon! If you have any tips or suggestions, I would greatly appreciate it.
Thanks,
Danny
Copy link to clipboard
Copied
This only works with CS4 but you can use the 'clipboard' preset to make the new document. The new doc will have the size and color space of the clipboard contents.
var desc = new ActionDescriptor();
var desc1 = new ActionDescriptor();
desc1.putString( stringIDToTypeID( "preset" ), "Clipboard" );
desc.putObject( charIDToTypeID( "Nw " ), charIDToTypeID( "Dcmn" ), desc1 );
executeAction( charIDToTypeID( "Mk " ), desc, DialogModes.NO );
That way the new doc will always be the size of the obj copied in InDesign.
Copy link to clipboard
Copied
Thanks Michael,
I just tried it and it works perfect! Thanks for your response. I'm pretty new to Javascripting and this is my first attempt doing any in Photoshop so any help is much appreciated. As far as the object model viewer for Photoshop, has anyone created any alternatives? I know there are some pretty nice ones out there for InDesign. Also, what is BridgeTalk. I've seen brought up a few times in the Photoshop forums. Is it needed when scripting for multiple applications?
Thanks again Michael.
Dan
Copy link to clipboard
Copied
I know that there is an object model viewer for Photoshop in ESKT but I don't use in. I just refer to the javascripting guide. But I don't think any object viewer would have helped in this case as it only shows DOM objects and document presets are not part of the DOM.
As I understand it you need BridgeTalk to script multiple applications in javacript becuse js runs in the host app. BridgeTalk allows you to sent script to another Adobe app. If you were scirpt using VBS or Applescript it's not needed as those run in the OS.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now