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
  • Rob Day
    3,126 posts
    Oct 16, 2007
    Currently Being Moderated
    Sep 15, 2011 10:50 AM   in reply to mm81bg
    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...is this possible with some extra preset modification or I'm just asking for too much already

    Sorry the script is saving out PDFs of the layers and the text has to be rasterized when the PDF is opened into PS.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 18, 2011 1:43 PM   in reply to Rob Day

    Hi Rob,

     

    Thanks so much for making this script - I've been using it for a long time now and it's been extremely helpful and a great timesaver! I can't seem to get it to work now though, and I'm not sure how to fix it. I actually ran it last week still using the CS3 version script  - even though I'm using CS5 now - it worked great with no problems. But now I'm getting an error message when I try to run the script...I downloaded the new version you posted for CS5 and still no luck with getting it to work. I read through your directions to change the "[PDF/X-4:2007]" to "[PDF/X-4:2008]" (since this is the only PDF/X-4 preset option available to me in InDesign) and also tried creating a preset named "myPDFpreset" (starting the PDF/X-4 preset) and then compiled and resaved the file, but still can't seem to get it running again. I'm not sure if there's any issues with the way I have my file set up or the settings within InDesign, I'm not sure.

     

    I've attached a sreenshot of the error message I'm getting. Please let me know if you can help! Thanks again

     

    Screen shot 2011-09-18 at 3.39.44 PM.png

     
    |
    Mark as:
  • Rob Day
    3,126 posts
    Oct 16, 2007
    Currently Being Moderated
    Sep 20, 2011 6:40 AM   in reply to sosoclumsy

    Your error message isn't for a missing PDF preset. I'm wondering if something happened when you tried to edit the script. Could you download the script again (from post 32), run it and see if you get a different error message, and post that? My assumption that the PDF/X-4 preset is universally available seems to be causing problems, so I might post a version with a list of presets to choose from when I get some time.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 1, 2011 2:44 PM   in reply to Arjan_Scholten_Muntz-MCG

    I recieved the same error message as sosoclumsy. I tried re-importing thee script, to no avail. Rob, if you are able to come up with a fix, that'd be great. Thanks for your help!

     
    |
    Mark as:
  • Rob Day
    3,126 posts
    Oct 16, 2007
    Currently Being Moderated
    Nov 1, 2011 3:14 PM   in reply to anardinelli

    That error isn't for a missing PDF preset it's for something else. At what point do you get the error? Do you get past the two dialogs for folder selection and color mode/res and into Photoshop?

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 1, 2011 3:20 PM   in reply to Rob Day

    Sorry Rob, I got this error, which isn't the same as above. I do, however, get past the first two dialogs.Picture 28.png

     
    |
    Mark as:
  • Rob Day
    3,126 posts
    Oct 16, 2007
    Currently Being Moderated
    Nov 1, 2011 3:28 PM   in reply to anardinelli

    I can't find anything wrong here. If you can run the script from AppleScript Editor and copy the Replies log for me I might be able to spot the problem.

     

    Run the script, click the Replies button, copy the text in the lower panel and post the text.

     

    Screen shot 2011-11-01 at 6.21.41 PM.png

     
    |
    Mark as:
  • Rob Day
    3,126 posts
    Oct 16, 2007
    Currently Being Moderated
    Nov 1, 2011 3:30 PM   in reply to anardinelli

    Oh wait, I see that your error is the missing PDF/X problem. Nevermind about the log I'll post a fix.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 1, 2011 3:47 PM   in reply to Rob Day

    For some reason I didn't get an email notification for your response to my post - I apologize for not replying sooner! I did manage to get the script to work though. Following your instructions in your earlier response to mckoenig, I created a new pdf preset with PDF/X-4:2008 Compatibility / Acrobat (PDF1.4) and named it PSDLayers. I then changed "set myPDFPreset to "[PDF/X-4:2007]" to  "set myPDFPreset to "PSDLayers" in the script. I'm not sure why I couldn't get it working right the first time around, but I've had no problems with it since.  Thanks again for the great script

     

    PSDLayersPreset.png

     

     

    PageToPSLayers.png

     
    |
    Mark as:
  • Rob Day
    3,126 posts
    Oct 16, 2007
    Currently Being Moderated
    Nov 1, 2011 4:12 PM   in reply to anardinelli

    This version should solve the missing PDF preset problems. I've added the dropdown menu with all available PDF presets. PDF/X-4 works best for color management:

     

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

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 1, 2011 4:18 PM   in reply to Rob Day

    Thanks so much, but still no luck. The first two layers open in PS, but each one as a seprate document. Then, this error message pops up.Picture 30.png

     
    |
    Mark as:
  • Rob Day
    3,126 posts
    Oct 16, 2007
    Currently Being Moderated
    Nov 1, 2011 4:37 PM   in reply to anardinelli

    What version of Photoshop are you running?

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 1, 2011 4:40 PM   in reply to Rob Day

    PS5

     
    |
    Mark as:
  • Rob Day
    3,126 posts
    Oct 16, 2007
    Currently Being Moderated
    Nov 1, 2011 4:47 PM   in reply to anardinelli

    Lets try the log idea. See my post 46. Try a simple document with a couple of layers so the log is short.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 1, 2011 4:55 PM   in reply to Rob Day

    Sounds good. Here's the log:

     

    tell application "Adobe Photoshop CS5"

        count every document of current application

            0

    end tell

    tell application "Adobe InDesign CS5"

        activate

        count every document of current application

            7

        get active document

            document id 7

        get name of document id 7

            "test_1.indd"

        get horizontal measurement units of view preferences of document id 7

            inches

        get vertical measurement units of view preferences of document id 7

            inches

        set horizontal measurement units of view preferences of document id 7 to inches

        set vertical measurement units of view preferences of document id 7 to inches

        get page height of document preferences of document id 7

            11.0

        get page width of document preferences of document id 7

            8.5

        get pages per document of document preferences of document id 7

            1

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

            alias "Macintosh HD:Users:amelia:Desktop:test 1:"

        make with properties {name:"Export to Photoshop"} new dialog

            dialog id 538053

        make new dialog column

            dialog column id 97832 of dialog id 538053

        make new border panel

            border panel id 97833 of dialog column id 97832 of dialog id 538053

        make new dialog column

            dialog column id 97834 of border panel id 97833 of dialog column id 97832 of dialog id 538053

        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 538053

        make with properties {static label:"Color Mode:"} 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 538053

        make with properties {string list:{"RGB", "CMYK", "Lab"}, selected index:0} 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 538053

        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 538053

        make with properties {static label:"Page to Export:"} 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 538053

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

            real editbox 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 538053

        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 538053

        make with properties {static label:"Resolution:"} 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 538053

        make with properties {edit contents:"300"} 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 538053

        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 538053

        make with properties {static label:"Antialias", checked state:false} new checkbox control

            checkbox control 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 538053

        show dialog id 538053

            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 538053

            0

        get edit value of real editbox 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 538053

            1.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 538053

            300.0

        get checked state of checkbox control 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 538053

            false

        destroy dialog id 538053

        count every layer of document id 7

            3

        get name of every layer of document id 7

            {"Layer 3", "Layer 2", "Layer 1"}

        set visible of every layer of document id 7 to false

        set visible of layer 3 of document id 7 to true

        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 "Macintosh HD:Users:amelia:Desktop:test 1:13test_1.indd" using PDF export preset "[PDF/X-4:2007]"

            "Adobe InDesign CS5 got an error: Invalid value for parameter 'using' of method 'export'. Expected PDF export preset, but received nothing."

     
    |
    Mark as:
  • Rob Day
    3,126 posts
    Oct 16, 2007
    Currently Being Moderated
    Nov 1, 2011 6:14 PM   in reply to anardinelli

    This is from the older version. Try it with the version I just posted in #49— PageToPSLayersV2

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 2, 2011 11:31 AM   in reply to Rob Day

    Hmm, sorry about that. I retried with the version from #49. Here's the error message and the event log. Thanks again for troubel shooting this with me, I really 

    appriate it.

     

    tell application "Adobe Photoshop CS5"

        count every document of current application

            0

    end tell

    tell application "Adobe InDesign CS5"

        activate

        count every document of current application

            7

        get active document

            document id 7

        get name of document id 7

            "test_1.indd"

        get horizontal measurement units of view preferences of document id 7

            inches

        get vertical measurement units of view preferences of document id 7

            inches

        set horizontal measurement units of view preferences of document id 7 to inches

        set vertical measurement units of view preferences of document id 7 to inches

        get page height of document preferences of document id 7

            11.0

        get page width of document preferences of document id 7

            8.5

        get pages per document of document preferences of document id 7

            1

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

            alias "Macintosh HD:Users:amelia:Desktop:test 1:"

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

            dialog id 541119

        make new dialog column

            dialog column id 97832 of dialog id 541119

        make new border panel

            border panel id 97833 of dialog column id 97832 of dialog id 541119

        make new dialog column

            dialog column id 97834 of border panel id 97833 of dialog column id 97832 of dialog id 541119

        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 541119

        get name of every PDF export preset

            {"[High Quality Print]", "[PDF/X-1a:2001]", "[PDF/X-3:2002]", "[PDFX4 2007]", "[PDF/X-4:2008]", "[Press Quality]", "[Smallest File Size]"}

        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 541119

        make with properties {string list:{"[High Quality Print]", "[PDF/X-1a:2001]", "[PDF/X-3:2002]", "[PDFX4 2007]", "[PDF/X-4:2008]", "[Press Quality]", "[Smallest File Size]"}, 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 541119

        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 541119

        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 541119

        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 541119

        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 541119

        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 541119

        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 541119

        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 541119

        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 541119

        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 541119

        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 541119

        make with properties {static label:"Antialias", checked state:false} 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 541119

        show dialog id 541119

            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 541119

            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 541119

            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 541119

            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 541119

            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 541119

            false

        destroy dialog id 541119

        count every layer of document id 7

            3

        get name of every layer of document id 7

            {"Layer 3", "Layer 2", "Layer 1"}

        set visible of every layer of document id 7 to false

        set visible of layer 3 of document id 7 to true

        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 "Macintosh HD:Users:amelia:Desktop:test 1:13test_1.indd" using PDF export preset "[PDF/X-4:2008]"

    end tell

    tell application "Adobe Photoshop CS5"

        activate

        «event PsCSodoc» file "Macintosh HD:Users:amelia:Desktop:test 1:13test_1.indd" given «class FmOp»:{class:«class cGPF», «class CPrP»:true, «class OMde»:«constant ****e082», «class ResL»:300, «class AnAl»:false, «class crto»:«constant ****crt5»}

            current application

    end tell

    tell application "Adobe InDesign CS5"

        set visible of every layer of document id 7 to false

        set visible of layer 2 of document id 7 to true

        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 "Macintosh HD:Users:amelia:Desktop:test 1:12test_1.indd" using PDF export preset "[PDF/X-4:2008]"

    end tell

    tell application "Adobe Photoshop CS5"

        activate

        «event PsCSodoc» file "Macintosh HD:Users:amelia:Desktop:test 1:12test_1.indd" given «class FmOp»:{class:«class cGPF», «class CPrP»:true, «class OMde»:«constant ****e082», «class ResL»:300, «class AnAl»:false, «class crto»:«constant ****crt5»}

            current application

        get every document

            {}

            "Can’t get item 0 of {}."

    Picture 34.png

     
    |
    Mark as:
  • Rob Day
    3,126 posts
    Oct 16, 2007
    Currently Being Moderated
    Nov 2, 2011 12:17 PM   in reply to anardinelli

    I can see that it's breaking on the Photoshop PDF open command. Are you running the most recent Photoshop (12.0.4)? What's the version of your OSX? I have not tested the script with Lion.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 2, 2011 12:28 PM   in reply to Rob Day

    No, I'm running PS 12.0.

    I'm on OS 10.5.8.

     
    |
    Mark as:
  • Rob Day
    3,126 posts
    Oct 16, 2007
    Currently Being Moderated
    Nov 2, 2011 12:35 PM   in reply to anardinelli

    Try this version, which uses a different open command:

     

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

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 2, 2011 12:53 PM   in reply to Rob Day

    Still no good. See error message and event log.

    Picture 35.png

    tell application "Adobe Photoshop CS5"

        count every document of current application

            0

    end tell

    tell application "Adobe InDesign CS5"

        activate

        count every document of current application

            9

        get active document

            document id 7

        get name of document id 7

            "test_1.indd"

        get horizontal measurement units of view preferences of document id 7

            inches

        get vertical measurement units of view preferences of document id 7

            inches

        set horizontal measurement units of view preferences of document id 7 to inches

        set vertical measurement units of view preferences of document id 7 to inches

        get page height of document preferences of document id 7

            11.0

        get page width of document preferences of document id 7

            8.5

        get pages per document of document preferences of document id 7

            1

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

            alias "Macintosh HD:Users:amelia:Desktop:test 1:untitled folder:"

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

            dialog id 546806

        make new dialog column

            dialog column id 97832 of dialog id 546806

        make new border panel

            border panel id 97833 of dialog column id 97832 of dialog id 546806

        make new dialog column

            dialog column id 97834 of border panel id 97833 of dialog column id 97832 of dialog id 546806

        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 546806

        get name of every PDF export preset

            {"[High Quality Print]", "[PDF/X-1a:2001]", "[PDF/X-3:2002]", "[PDFX4 2007]", "[PDF/X-4:2008]", "[Press Quality]", "[Smallest File Size]"}

        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 546806

        make with properties {string list:{"[High Quality Print]", "[PDF/X-1a:2001]", "[PDF/X-3:2002]", "[PDFX4 2007]", "[PDF/X-4:2008]", "[Press Quality]", "[Smallest File Size]"}, 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 546806

        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 546806

        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 546806

        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 546806

        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 546806

        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 546806

        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 546806

        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 546806

        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 546806

        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 546806

        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 546806

        make with properties {static label:"Antialias", checked state:false} 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 546806

        show dialog id 546806

            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 546806

            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 546806

            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 546806

            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 546806

            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 546806

            false

        destroy dialog id 546806

        count every layer of document id 7

            3

        get name of every layer of document id 7

            {"Layer 3", "Layer 2", "Layer 1"}

        set visible of every layer of document id 7 to false

        set visible of layer 3 of document id 7 to true

        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 "Macintosh HD:Users:amelia:Desktop:test 1:untitled folder:13test_1.indd" using PDF export preset "[PDF/X-4:2008]"

    end tell

    tell application "Adobe Photoshop CS5"

        activate

        «event PsCSodoc» alias "Macintosh HD:Users:amelia:Desktop:test 1:untitled folder:13test_1.indd" given «class FmOp»:{class:«class cGPF», «class CPrP»:true, «class OMde»:«constant ****e082», «class ResL»:300, «class AnAl»:false, «class crto»:«constant ****crt5»}

            current application

    end tell

    tell application "Adobe InDesign CS5"

        set visible of every layer of document id 7 to false

        set visible of layer 2 of document id 7 to true

        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 "Macintosh HD:Users:amelia:Desktop:test 1:untitled folder:12test_1.indd" using PDF export preset "[PDF/X-4:2008]"

    end tell

    tell application "Adobe Photoshop CS5"

        activate

        «event PsCSodoc» alias "Macintosh HD:Users:amelia:Desktop:test 1:untitled folder:12test_1.indd" given «class FmOp»:{class:«class cGPF», «class CPrP»:true, «class OMde»:«constant ****e082», «class ResL»:300, «class AnAl»:false, «class crto»:«constant ****crt5»}

            current application

        get every document

            {}

            "Can’t get item 0 of {}."

     
    |
    Mark as:
  • Rob Day
    3,126 posts
    Oct 16, 2007
    Currently Being Moderated
    Nov 2, 2011 1:19 PM   in reply to anardinelli

    No, I'm running PS 12.0.

    Try updating to the most recent 12.0.4. I don't think there was full scripting support in 12.0.

     

    http://www.adobe.com/support/downloads/product.jsp?product=39&platform =Macintosh

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 2, 2011 1:36 PM   in reply to Rob Day

    Rob, that did the trick! I can't thank you enough for your patience and

    perseverance. The script works beautifully. Bravo!

     
    |
    Mark as:
  • Rob Day
    3,126 posts
    Oct 16, 2007
    Currently Being Moderated
    Nov 2, 2011 2:17 PM   in reply to anardinelli

    Your welcome. I'll update the read me so users know about the 12.0 problem.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 21, 2011 5:59 PM   in reply to Rob Day

    hello rob,

     

    I have stupidly used indesign to create this whole website layout, so now i need to export it to photoshop for the web guy to code....

    Thank you for the script, it is fantastic! - the answer to my prayers (...nearly)

         it's just, with the script you've provided, it exports all the layers and flattens all my sub-layers/items in those layers.

         .... say i've created a navigation bar, and i've group all the items into one big layer, it gets flattened when exported...

     

    I know i've dug my own hole, and should probably just make the items into layers, but it will take too long and there's so many pages...

    do you happen to have a solution? or did i just confuse you more?

     

    thanks!

     
    |
    Mark as:
  • Rob Day
    3,126 posts
    Oct 16, 2007
    Currently Being Moderated
    Nov 22, 2011 6:46 AM   in reply to on_a_slant

    It would be possible to script but it wouldn't be trivial, you'd have to consider groups, inline graphics, and maybe Photoshop's total layer limit.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 27, 2011 7:33 AM   in reply to Rob Day

    Rob, great script. An extra Christmas present as I'm in need of creating layered PS files of quite number of InD files that I've already created for a client who is now demanding PS instead of InD.

     

    The only thing that I'm trying to get in the PS now is the crop marks and a bleed of .125". I've made a PDF preset that is such and I select that preset once the dialogue box comes up when the script is activated. But, I don't get either the bleed or crop marks in the final PS document.

     

    If you have any suggestions, I'd REALLY appreciate it.

     

    Thanks,

     

    Rick

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 27, 2011 8:12 AM   in reply to RJensenArtDirector

    Rob,

     

    I just did a work-around  by changing the size of my InD document to include the bleed and then have added guides in PS for client reference.

     

    Thanks again for the great script — it's working flawlessly.

     

    Rick

     
    |
    Mark as:
  • Rob Day
    3,126 posts
    Oct 16, 2007
    Currently Being Moderated
    Dec 27, 2011 8:34 AM   in reply to RJensenArtDirector

    I'm traveling, the script sets the PDF bounds to the trim, but it could include crops. I'll post something later today.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 27, 2011 12:45 PM   in reply to Rob Day

    Rob,

     

    Thank you for your quick reply. First of all, thanks for the super time saving script. It's working great.

     

    I've done a work around by changing the InD document size to include the .125 of bleed I need and then in PS I'm adding the guides for the client reference. So, thank you and whenever you get around to it — I'd certainly take the updated script the next time I need to do this.

     

    Who wants a layout in PS anyway? Dang clients.

     

    Thanks Rob.

     

    Rick

     
    |
    Mark as:
  • Rob Day
    3,126 posts
    Oct 16, 2007
    Currently Being Moderated
    Dec 27, 2011 11:24 AM   in reply to RJensenArtDirector

    Who wants a layout in PS anyway? Dang clients.

     

    You don't mean this is a print job? Hope you're getting paid up front.

     

     

    To include the PDF preset's crops you need to edit the script. Look for the 3 lines where the crop page is set to trim box and change to bounding box.

    So this:

     

     

    if colorMode is "CMYK" then

              set myOpenOptions to {class:PDF open options, constrain proportions:true, mode:CMYK, resolution:res, use antialias:aa, crop page:trim box}

                   else

              if colorMode is "RGB" then

                    set myOpenOptions to {class:PDF open options, constrain proportions:true, mode:RGB, resolution:res, use antialias:aa, crop page:trim box}

                        else

                   if colorMode is "Lab" then

                        set myOpenOptions to {class:PDF open options, constrain proportions:true, mode:Lab, resolution:res, use antialias:aa, crop page:trim box}

                   end if

              end if

    end if

     

     

     

    Needs to be:

     

    if colorMode is "CMYK" then

              set myOpenOptions to {class:PDF open options, constrain proportions:true, mode:CMYK, resolution:res, use antialias:aa, crop page:bounding box}

                   else

              if colorMode is "RGB" then

                    set myOpenOptions to {class:PDF open options, constrain proportions:true, mode:RGB, resolution:res, use antialias:aa, crop page:bounding box}

                        else

                   if colorMode is "Lab" then

                        set myOpenOptions to {class:PDF open options, constrain proportions:true, mode:Lab, resolution:res, use antialias:aa, crop page:bounding box}

                   end if

              end if

    end if





     
    |
    Mark as:
  • Currently Being Moderated
    Dec 27, 2011 12:40 PM   in reply to Rob Day

    Hey Rob.

     

    Yeah, this is a print job! Crazy. He's got InDesign too!

     

    We're past being billable on this one.

     

    Thanks for the edit to the script.

     
    |
    Mark as:
  • John Hawkinson
    5,572 posts
    Jun 25, 2009
    Currently Being Moderated
    Dec 27, 2011 12:37 PM   in reply to RJensenArtDirector

    FYI, Rick, your email address and phone number appear in all your posts via email for all the world to see -- you should suppress your signature when replying via email. You should be able to edit it out of at least the last few posts on the web interface as well (but a moderator might have to do some).

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 27, 2011 12:42 PM   in reply to John Hawkinson

    John,

     

    A huge thanks for that one. I didn't realize that the reply was feeding back into the forum post.

     

    Thanks man.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 27, 2011 12:46 PM   in reply to RJensenArtDirector

    I deleted it from the other one.

     

     

     

    Bob

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 27, 2011 12:47 PM   in reply to Bob Levine

    Thank you Bob.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 18, 2012 4:37 AM   in reply to Arjan_Scholten_Muntz-MCG

    Funny how things go in this world.

     

    I work for a prepress company in the Netherlands (so forgive my bad english!).

    A collega comes to me with the question if its possible to export an InDesign document with layers to a Photoshop document with layers.

    I am not sure about this and start looking on the world wide web.

    And.. find a solution or not...

     

    Because the link to PageToPSLayersCS5v2.zip or ...v3.zip or all dead.

    It redirect back to this Adobe Forums site.

     

    So my question is now: does it work and where can I find it.

    (working with Photoshop 12.04 x64, InDesign 7.0.1 and Mac OS X 10.6.8)

     

    Maybe it's a stuppid question but better ask it than keep looking for mayby nothing.

     

    In all cases thanks anyway.

    Ray

     
    |
    Mark as:
  • Rob Day
    3,126 posts
    Oct 16, 2007
    Currently Being Moderated
    Jan 18, 2012 5:05 AM   in reply to RBA2000

    I just checked this link and it works

     

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

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 18, 2012 5:29 AM   in reply to Arjan_Scholten_Muntz-MCG

    InDesign to Photoshop Layers

     

    File>Export>PDF> Acrobat 6 or above and Create Layers

     

    Open PDF in Illustrator

     

    File>Export>PSD and select write layers

     

     

    Tried it on a fairly complex page with text, blending modes, etc. all layers came thorough fine, with clipping masks and all in tact.

     
    |
    Mark as:
  • Rob Day
    3,126 posts
    Oct 16, 2007
    Currently Being Moderated
    Jan 18, 2012 9:26 AM   in reply to Eugene Tyson

    Eugene, Are you getting your ID named layers into AI? 

     

    I get one layer (Layer 1) in AI with all of the ID objects as layer objects, which might be good depending on what your looking for. In my test file a column of text is cut up into lines with each on its own layer—the script would export the two user defined layers. The AI approach is definitely better if you want every object on its own layer.

     

     

    ID

    Screen shot 2012-01-18 at 12.05.30 PM.png

    AI

    Screen shot 2012-01-18 at 12.04.55 PM.png

     
    |
    Mark as:
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