Skip navigation

how to export indesign layers to photoshop layers (same structure)

Jul 2, 2009 1:28 AM

  Latest reply: Rob Day, Jan 22, 2014 9:17 AM
Replies 1 2 3 Previous Next
  • Currently Being Moderated
    Jan 18, 2012 9:45 AM   in reply to Rob Day

    These are the two scripts that I used to convert a layered InDesign document to a layered Photoshop document. One gives you crop marks and bleed, the other crops it to the document size.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 18, 2012 3:05 PM   in reply to Rob Day

    No not getting the layer names.

     

    It's a bit of a jungle for sure. A bit of sorting out to do. But you get all the layers, needs a lot of rearranging.

     

    Do the layers come into Illustrator with the right names? I can't remember not at that computer now.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 18, 2012 3:19 PM   in reply to Eugene Tyson

    The answer is they don't.

     

    Pity the layers between apps aren't transferable?

     

    There is the option for Illustrator PDF - make editable with Illustrator.

     

    Surely that could be added to InDesign somehow.. I'm not programmer so I'm probably wrong: but would be nice to have Save as PDF with Illustrator Editing capabilities...???

     

    Probably not doable.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 19, 2012 3:54 AM   in reply to Rob Day

    Dear Rob,

     

    Thank you for your reply.

    It works like a dream (ok, maybe my dreams are not so big!).

    But, it does the job.

     

    Ray

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 12, 2012 11:57 AM   in reply to Rob Day

    Hi Rob-

    Having trouble opening this link, is it possible to repost again?

    It seems to be the cure for everyones troubles thus far, I really hope it can help us out too.

    Thanks so much for your help!

    Kate

     
    |
    Mark as:
  • Rob Day
    3,139 posts
    Oct 16, 2007
    Currently Being Moderated
    Mar 12, 2012 12:12 PM   in reply to jamiekphoto

    The address in post #77 is the most recent version and is working:

     

     

    http://www.zenodesign.com/forum/PageToPSLayersV3.zip

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 27, 2012 3:48 AM   in reply to Rob Day

    I would just like to add my thanks and appreciation! This script, had I known about it 3 years ago would have saved

    hours of pixel point comparison pain with my programmer - thanks for your scripting prowess & if you have any other

    time saving scripts up your sleeve I would love to hear of them - where are you based ? best wishes / T. Moore - Art director ~ nthcreative

     
    |
    Mark as:
  • Rob Day
    3,139 posts
    Oct 16, 2007
    Currently Being Moderated
    Jun 27, 2012 2:10 PM   in reply to Discreet Unit

    Happy to hear it works for you. I'm in the US, Newburyport—north of Boston.

     
    |
    Mark as:
  • Rob Day
    3,139 posts
    Oct 16, 2007
    Currently Being Moderated
    Dec 19, 2012 2:08 PM   in reply to Rob Day

    I've had a lot of requests for text editing capabilities, so I took some time today to write a version of the script that places the ID layer PDFs into Photoshop rather than opening and copying them. Placing makes the layers Smart Objects  so you have the option to double-click a PS layer and edit it in Illustrator. Also added a Smart Object checkbox–unchecking it rasterizes all of the layers.

     

    With this version you no longer have to close all PS docs before running the script.

     

    http://www.zenodesign.com/forum/PageToPSLayersV4.zip

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 7, 2013 2:22 PM   in reply to Rob Day

    Dear Rob,

     

    I've been trying to use the latest script you posted with cs6 but it keeps coming back with this error. I also tried to run it with CS5 but obviously it didn't work.

    I am on OSX 10.6.8 could that be the problem?

    Would be so grateful if you could help, I have loads of pages that I have done and need to do and I really don't want to have to create them in photoshop ( I need to get them to the programmer in psd-layers)

    This is the error

    Screen shot 2013-01-07 at 10.43.41 PM.png

    Thank you!

    Helena

     
    |
    Mark as:
  • Rob Day
    3,139 posts
    Oct 16, 2007
    Currently Being Moderated
    Jan 7, 2013 2:57 PM   in reply to HDsign

    It's not your OS–I'm testing on 10.6.8 and it's running ok in the latest updates of CS6. Are you patched to the latest Photoshop 13.1.1?

     

    I'm using a bit of JavaScript to place the layers as smart objects because AppleScript doesn't have the place command. It sounds like there's something up with your Photoshop's scripting. Can you run other Photoshop JavaScript—under File>Scripts...

     
    |
    Mark as:
  • Rob Day
    3,139 posts
    Oct 16, 2007
    Currently Being Moderated
    Jan 7, 2013 2:58 PM   in reply to HDsign

    I just tested it in CS3 and it worked fine, so I think something is up with you Photoshop's scripting

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 7, 2013 3:05 PM   in reply to Rob Day

    I wonder if she missed a characer in copying the script or something. Looks like unbalancec parentheses in that error message...

     
    |
    Mark as:
  • Rob Day
    3,139 posts
    Oct 16, 2007
    Currently Being Moderated
    Jan 7, 2013 3:19 PM   in reply to Peter Spier

    Maybe. Helena could you post the complete error message, the bottom half is cropped off in your screen capture?

     

    Did you download the zip file and install the compiled script, or did you copy it from somewhere?

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 7, 2013 3:45 PM   in reply to Rob Day

    Magic! It works, I had selected a folder inside Documents instead of on the Desktop, like to keep my desktop neat and didn't know it was of significant importance to put the files on the desktop.

    What a silly mistake.

    Your answered helped though! Thank you for your great support!

     
    |
    Mark as:
  • Rob Day
    3,139 posts
    Oct 16, 2007
    Currently Being Moderated
    Jan 7, 2013 3:52 PM   in reply to HDsign

    That's odd. The desktop isn't a requirement, you should be able to pick any folder for the PDFs—it works into my Documents folder. Maybe it's a permissions thing.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 22, 2013 4:31 PM   in reply to Rob Day

    I am sorry, but how do I get this to work? I am new at working with scripts. I downloaded the script and placed it in the scripts folder under the correct folder in InDesign as per the directions. After I open the file in InDesign, then what do I do?

     
    |
    Mark as:
  • Rob Day
    3,139 posts
    Oct 16, 2007
    Currently Being Moderated
    Jan 22, 2013 6:28 PM   in reply to AbbyCB17

    It's an AppleScript so you have to be using OSX. From InDesign open you Scripts panel (Windows>Utilities>Scripts in CS6). If the script is installed correctly it will be listed in the panel. Open the doc you want to export and double-click the script. You'll be asked to choose a folder to holder the layers, I usually have one on the desktop.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 22, 2013 7:28 PM   in reply to Rob Day

    Forgive me, but what panel? I am running OSX and CS5.5. I followed the directions exactly and when I open the file in InDesign am I supposed to see this somewhere? I typically have been exporting the file and then opening in Illustrator exporting to PSD with layers...and I just looking for a quicker way to do this...

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 23, 2013 2:03 AM   in reply to mm81bg

    ...there's just one more little favor to ask you guys with my case.The text layers came rasterized and I actually need them to be recognized as text layers since I would need to key off the info in them...

    About a year ago I wrote a script that creates from the active document in InDesign a layered psd-file keeping text alive and editable (as text layers) and partially keeping its formatting: width, height and position of the text block, font, size, color, justification. Though the script was almost ready (only the part of the code that interacts with the dialog box left to finish), the client changed his mind and I stopped working on it.

    I wonder: are there any people interested in completing the script? It was written according specific requirements so it won’t work for everybody as it is, but it’s possible to make a more “general” version.

     
    |
    Mark as:
  • Rob Day
    3,139 posts
    Oct 16, 2007
    Currently Being Moderated
    Jan 23, 2013 4:11 AM   in reply to AbbyCB17

    In CS6 it's under Window>Utilities. Might have been different in CS5 maybe Window>Automate? Looks like this:

     

    Screen shot 2013-01-23 at 7.03.27 AM.png

     
    |
    Mark as:
  • Rob Day
    3,139 posts
    Oct 16, 2007
    Currently Being Moderated
    Jan 23, 2013 5:29 AM   in reply to Kasyan Servetsky

    In the latest version of my AppleScript the PS layers can be smart objects so text can be edited via Illustrator.

     

    I thought about live text but quickly gave up—besides the formatting differences there would be cases like wrapped text, text on a path, text in a shape, etc. that seem overwhelming if not impossible to script.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 25, 2013 12:19 PM   in reply to Rob Day

    Thanks so much for this Rob, it's a work of genius! I'll be using this all the time now.

     

    I'm fundamentally a print designer and also do lots of brand identity work. InDesign is always my tool of choice - fast, accurate, intuitive, I love it. Increasingly I get clients asking me to design website which are then built by others. The developers usually want a layered photoshop file (thet can just lift things out as they need them) and that usually means laboriously copying and pasting stuff layer by layer from InDesign to Photoshop. Now I won't have to. I think Adobe need to build this functionality into InDesign, it's a perfect crossover function.

     

    Thanks again!

     

    Ian

     
    |
    Mark as:
  • Rob Day
    3,139 posts
    Oct 16, 2007
    Currently Being Moderated
    Mar 25, 2013 2:13 PM   in reply to Designicc

    You're welcome–happy to hear it's useful

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 1, 2013 1:26 AM   in reply to Rob Day

    Wow, this worked like a magic! Thanks a million! I love doing webdesign in InDesign because  I can create multiple versions very quickly. But the coder get's it only fromPSDs. You made my life much easier

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 2, 2013 6:23 AM   in reply to Rob Day

    Thank you ROB!

     

    I just want to say that I'm totally new to Applescripts - this was first try at it. Your instructions in the read me file were super easy to follow, I ran the script and it worked.

     

    This was SO helpful. I don't know how you did it, but your work is totally appreciated!!

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 22, 2014 3:52 AM   in reply to Rob Day

    Hi Rob,

     

    I'm very late to this party but hoping you may be able to help me. I have downloaded the latest version of your script and am having some problems. Sometimes it works(ish) and sometimes it gives me an error message. When it kind of works, it presents me with a PSD file containing just one smart object layer and when it doesn't I get the error message: Screen Shot 2014-01-22 at 11.51.02.png

    I would really appreciate any help you could give me.

    Thanks so much

    Elfie

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 22, 2014 3:55 AM   in reply to Elfie3015

    This is the result log:

    tell application "Adobe InDesign CS6"

    activate

    count every document of current application

      --> 1

    get active document

      --> document id 2

    get name of document id 2

      --> "Untitled-1"

    choose folder with prompt "Please select the folder you want to save your PDF pages in"

      --> alias "disk0s2:Users:exf1467:Desktop:*WESTFIELD WEB:TEST:"

    make with properties {name:"Export to Photoshop (PDF/X-4 Preset Recommended)"} new dialog

      --> dialog id 91671

    make new dialog column

      --> dialog column id 97832 of dialog id 91671

    make new border panel

      --> border panel id 97833 of dialog column id 97832 of dialog id 91671

    make new dialog column

      --> dialog column id 97834 of border panel id 97833 of dialog column id 97832 of dialog id 91671

    make new dialog row

      --> dialog row id 97835 of dialog column id 97834 of border panel id 97833 of dialog column id 97832 of dialog id 91671

    get name of every PDF export preset

      --> {"[High Quality Print]", "[PDF/X-1a:2001]", "[PDF/X-3:2002]", "[PDF/X-4:2008]", "[Press Quality]", "[Smallest File Size]", "Low Res", "Medium Quality", "Layers to PSD", "PSDLayers"}

    make with properties {static label:"PDF Preset:"} new static text

      --> static text id 97836 of dialog row id 97835 of dialog column id 97834 of border panel id 97833 of dialog column id 97832 of dialog id 91671

    make with properties {string list:{"[High Quality Print]", "[PDF/X-1a:2001]", "[PDF/X-3:2002]", "[PDF/X-4:2008]", "[Press Quality]", "[Smallest File Size]", "Low Res", "Medium Quality", "Layers to PSD", "PSDLayers"}, selected index:4, min width:250} new dropdown

      --> dropdown id 97837 of dialog row id 97835 of dialog column id 97834 of border panel id 97833 of dialog column id 97832 of dialog id 91671

    make new dialog row

      --> dialog row id 97838 of dialog column id 97834 of border panel id 97833 of dialog column id 97832 of dialog id 91671

    make with properties {static label:"Color Mode:"} new static text

      --> static text id 97839 of dialog row id 97838 of dialog column id 97834 of border panel id 97833 of dialog column id 97832 of dialog id 91671

    make with properties {string list:{"RGB", "CMYK", "Lab"}, selected index:0, min width:250} new dropdown

      --> dropdown id 97840 of dialog row id 97838 of dialog column id 97834 of border panel id 97833 of dialog column id 97832 of dialog id 91671

    make new dialog row

      --> dialog row id 97841 of dialog column id 97834 of border panel id 97833 of dialog column id 97832 of dialog id 91671

    make with properties {static label:"Page to Export:"} new static text

      --> static text id 97842 of dialog row id 97841 of dialog column id 97834 of border panel id 97833 of dialog column id 97832 of dialog id 91671

    make with properties {edit contents:"1"} new real editbox

      --> real editbox id 97843 of dialog row id 97841 of dialog column id 97834 of border panel id 97833 of dialog column id 97832 of dialog id 91671

    make new dialog row

      --> dialog row id 97844 of dialog column id 97834 of border panel id 97833 of dialog column id 97832 of dialog id 91671

    make with properties {static label:"Resolution:"} new static text

      --> static text id 97845 of dialog row id 97844 of dialog column id 97834 of border panel id 97833 of dialog column id 97832 of dialog id 91671

    make with properties {edit contents:"300"} new real editbox

      --> real editbox id 97846 of dialog row id 97844 of dialog column id 97834 of border panel id 97833 of dialog column id 97832 of dialog id 91671

    make new dialog row

      --> dialog row id 97847 of dialog column id 97834 of border panel id 97833 of dialog column id 97832 of dialog id 91671

    make with properties {static label:"Layers are Smart Objects", checked state:true} new checkbox control

      --> checkbox control id 97848 of dialog row id 97847 of dialog column id 97834 of border panel id 97833 of dialog column id 97832 of dialog id 91671

    show dialog id 91671

      --> true

    get selected index of dropdown id 97837 of dialog row id 97835 of dialog column id 97834 of border panel id 97833 of dialog column id 97832 of dialog id 91671

      --> 4

    get selected index of dropdown id 97840 of dialog row id 97838 of dialog column id 97834 of border panel id 97833 of dialog column id 97832 of dialog id 91671

      --> 0

    get edit value of real editbox id 97843 of dialog row id 97841 of dialog column id 97834 of border panel id 97833 of dialog column id 97832 of dialog id 91671

      --> 1.0

    get edit value of real editbox id 97846 of dialog row id 97844 of dialog column id 97834 of border panel id 97833 of dialog column id 97832 of dialog id 91671

      --> 300.0

    get checked state of checkbox control id 97848 of dialog row id 97847 of dialog column id 97834 of border panel id 97833 of dialog column id 97832 of dialog id 91671

      --> true

    destroy dialog id 91671

    count every layer of document id 2

      --> 1

    set visible of every layer of document id 2 to false

    set visible of layer 1 of document id 2 to true

    get name of layer 1 of document id 2

      --> "Layer 1"

    set page range of PDF export preferences to "1"

    set view PDF of PDF export preferences to false

    export document 1 format PDF type to "disk0s2:Users:exf1467:Desktop:*WESTFIELD WEB:TEST:11Untitled-1" using PDF export preset "[Press Quality]"

    end tell

    tell application "Adobe Photoshop CS6"

    activate

    open file "disk0s2:Users:exf1467:Desktop:*WESTFIELD WEB:TEST:11Untitled-1" with options {class:PDF open options, constrain proportions:true, mode:RGB, resolution:300, use antialias:true, crop page:trim box}

      --> error number -1750

    Result:

    error "Adobe Photoshop CS6 got an error: Scripting component error." number -1750

     
    |
    Mark as:
  • Rob Day
    3,139 posts
    Oct 16, 2007
    Currently Being Moderated
    Jan 22, 2014 6:45 AM   in reply to Elfie3015

    Is your Photoshop CS6 up to date? 13.1.2

     
    |
    Mark as:
  • Rob Day
    3,139 posts
    Oct 16, 2007
    Currently Being Moderated
    Jan 22, 2014 6:49 AM   in reply to Elfie3015

    Also, what OS version

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 22, 2014 8:12 AM   in reply to Rob Day

    I'm on CS5.5. Operating system: 10.9.1

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 22, 2014 8:14 AM   in reply to Rob Day

    Photoshop is 13.0.4.

    Thanks Rob

     
    |
    Mark as:
  • Rob Day
    3,139 posts
    Oct 16, 2007
    Currently Being Moderated
    Jan 22, 2014 8:24 AM   in reply to Elfie3015

    I haven't tested it in Mavericks, but you could start by updating your Photoshop. Someone else had a similar problem and updating solved it.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 22, 2014 8:52 AM   in reply to Rob Day

    That seemed to sort the error message out, thanks so much. Am I right in thinking that for the document to export with PSD layers, everything in the ID file needs to be on seperate layers too?
    E

     
    |
    Mark as:
  • Rob Day
    3,139 posts
    Oct 16, 2007
    Currently Being Moderated
    Jan 22, 2014 9:17 AM   in reply to Elfie3015

    The script simply replicates the InDesign document's layers in PS, so if you only have one layer in ID you'll get one layer in Photoshop.

     
    |
    Mark as:
1 2 3 Previous Next
Actions

More Like This

  • Retrieving data ...

Bookmarked By (1)

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