[JS] how to package an InDesign document

I am trying to script the packaging of InDesign files.
function packageForPrint (to, copyingFonts, copyingLinkedGraphics, copyingProfiles, updatingGraphics, ignorePreflightErrors, creatingReport, versionComments, forceSave){
app.activeDocument.packageForPrint (Folder.desktop, true, true, true, true, true, true, true, true);
I thought the packageForPrint was the way to go. But I can't get the correct structure.
Can someone give me a clue as the direction I need to go with this.
I am using InDesign CS2 on a Mac. But want the script to work cross platform.
Any help would be appreciated.
Peter Hedrington

>Still had some trouble with how to correctly write the file path.
You can find detailed information about it in ‘File System Access’ chapter of JavaScript Tools Guide. Or use this script – it writes the path of the selected folder to console.
Kasyan
var myFolder = Folder.selectDialog ("Choose a Folder");
if(myFolder != null){
   $.writeln("fsName - " + myFolder.fsName);
   $.writeln("absoluteURI - " + myFolder.absoluteURI);

Similar Messages

  • Packaging an InDesign document with Placed Illustrator Files which contain PLACED GRAPHICS!

    I've got an InDesign document 215 pages long.  Each page contains a placed Illustrator document... and each Illustrator document contains a placed TIFF.
    When I package the InDesign Document the Illustrator files are gathered into the new location, but InDesign does not gather the TIFFs.  I need to get this material to the book designer, but relinking 215 pages is going to be a very risky and time consuming process--one that will have to be done OVER and OVER again as the project moves from one location to another.  Can anyone recommend a solution?  Why doesn't InDesign look for nested files?
    Does anybody understand what I'm talking about?
    --Jay

    The reason behind link (.psd in layers) means in the future it can be edited.
    If the person receiving to package needs to edit the layers of a PSD placed in an Illustrator file, then yes you would have to manually include the layered PSDs. But if it's just a matter of ensuring full res and color managed output downstream then saving as PDF does that and preserves the links to layered files locally. So if I save as PDF trash a link and reopen the PDF in Illustrator it will look for the link:
    If you save as .ai with the links embedded, the users downstream would be able to unembed and edit a flattened version of the placed art.

  • How to Mark an InDesign Document with an "Indelible Watermark"

    For CS5 and ActionScript:
    I want to mark an InDesign document I've creating via scripting in such a way that an end user can not get rid of the marking (e.g., when distributing my extension as a trial version). Ideally, I'd want "Trial Version" splashed across each page "indelibly".
    How can this be done?
    TIA,
    mlavie

    Hi,
    Try using watermark document preference:
    app.activeDocument.watermarkPreferences;
    There are some properties like text, font, style, rotatio, opacity...
    Hope that helps.
    Marijan (tomaxxi)
    http://tomaxxi.com

  • Packaging large InDesign document - won't copy all links

    I'm trying to Package a 1,000-page InDesign document that has about 375 links for our archive. When I go through the packaging process, however, it only saves about a dozen images or so in the designated folder. Any ideas why it's not taking the time to resave and compile all of the images?

    What operating system specs; OS, RAM, available HDD, network or local?
    Which version of InDesign, are you fuuly patched?

  • How to paginate an Indesign document with a PDF File?

    Hi everyone!
    I'm a french student and i have to do a document on the movie IN TIME (2011) by Andrew Niccol, and i wanted to paginate my document in the style of the counter the characters have on their arms (0000.00.0.00.00.00).
    I created it on Photoshop, as a simple Text, and i wanted to know if there was a way to paginate automatically all the document with this file (changing the numbers automatically)? Moreover, it would be perfect if it could be decreasing, like the counter, to have the last paged numbered 0000.00.0.00.00.00.... ?
    If someone has an idea....
    Thank you for helping me!
    I added snapshots to make my question more clear:
    PS: I'm sorry for my poor English...

    This is a job for Data merge, if using the photoshop files, but I'm not seeing anything in the screen shot that looks like it must be done in Photoshop because it is impossible to do in ID, which makes life simpler, so I'd just place a text file for the page numbers.
    Start in Excel and make a one-column table with your numbers in descending order. After you enter the first three, you should be able to get Excel to autofill the rest. Save as a text file.
    In InDesign add a frame to the master page where you want the number to appear, and rotate as desired. Don't forget to thread them together if you put a frame on both pages in the master spread. It looks like this frame is going to need to be on a new layer above other content. Create a paragraph style with the character color and the keep options (start in next frame) to use for the numbers. Also create an object style to add the glow on the text and apply it to your master frames. You can also include the paragraph style in your object style, but you must still select it inthe Paragraph Styles panel before placing the number list or the current default paragraph style will override the object style and things won't work as planned.

  • Showing indesign document in iOS app.

    Hi, I want to create iOS app which will display magazines but other then magazine pages i want to create login and some other pages. How can i show indesign document in app? DPS don't allows us to code and I haven't found any satisfactory answer for using indesign document in coding through xcode.

    AFAIK InDesign SDK is meant for creating plug-ins for InDesign. It has nothing to do with cXode or even objective-C programming language which is used in xCode...
    InDesign documents (indd-files) are compiled binary files, I don´t think you can parse them anyhow.
    InDesign can be set to save preview images of the pages, that can be used for showing InDesign document´s pages inside some iOS viewer app, I think someone has already done somthing like that... but that´s about only way I can imagine to show InDesign document´s content inside iOS app...

  • "The selected package file requires an InDesign document that cannot be found."

    Hello,
    I often get this error message "The selected packaged file requires an InDesign document that cannot be found.  How do you want to continue?" when opening in InDesign CS5.5
    My options are "Browse to locate this document." and "Save the contents of the package to disk."
    When I selected "Browse to locate this document." and I located the appropriate InDesign file, it prompts me to browse for the file again.  Its a never ended cycle.
    I'm not sure how to solve this problem.  I'm not familiar with the procedure if I "save the contents of the package to disk."  Can someone help me out with this?
    Thanks!

    Well, there’s your answer. Pretty simple…don’t do that.
    But if the damage has been done, you can change the extension of the idap file to zip and unzip the contents. You’ll find all the updated InCopy stories there.
    Overwrite the ones on your harddrive and you should be good to go.
    Bob

  • How do I get inDesign to quit crashing when I try to open a damaged document?

    Alright, I'm in a bit of a pinch and behind on deadline because of something completely random and out of the blue happening with inDesign. Here's what happened:
    I was working on a magazine layout and printed out a PDF draft. The draft looked normal. I saved, shut my computer, walked away, and came back 30 minutes later to find that 9 pages had gone almost completely blank - even the locked layers were gone. I checked the layers and they were still locked. I thought my content had gotten erased somehow. Then I looked again and saw an overseer text symbol in the middle of one of the spreads. I clicked it and was able to enlarge it somewhat. Doing this gave me the spinning color wheel of doom (I have a Mac running off of Maverick now), and every little zoom and mouse movement gave this result that lasted about 3 minutes at a time. I tried saving again (got the spinning color wheel of doom), then shut down inDesign, and tried again. Same thing happened, only this time I got an automatic recovery notice when it opened. Everything else looked normal. I noticed that the content that had been squished was actually also at a skewed angle as well, like it had been rotated at some strange 3D plane. The story board would also expand to 10 times the normal size every time I tried to move the skewed, overset content. I shut everything down again and restarted my computer. Only this time, whenever I tried to open the problematic document, it would give me the auto recovery request, then promptly crash when I clicked "Yes" for auto recover. I tried multiple times now to open the document, thinking maybe I could just wipe those pages and start over again, but it crashes every time.
    Nothing like this has ever happened to me before. I have no idea how this happened, and now it seems like I'm going to loose the entire document, about 40 hours of work. As far as I know, nobody else was near my computer in the 30 minutes it took me to shut it and open it back up again.
    Help!
    Can anybody shed some light onto this situation? Honestly, I'd be happy to just be able to open the document again so I can erase those problem pages and re-do them... I took screen shots of what inDesign was doing before it crashed:
    Here you can see that the "P" in the upper left is all twisted, the same way my content is:
    This is a zoomed-out image of how big the storyboard would become when I tried to tweak that overset text/ content...

    You can try opening the file "as a copy" from the open dialog. You can also try the blind export to .idml: Adobe Community: InDesign 6 is crashing when attempting to open a particular document. All others are opening OK.
    and there's a tool for Windows you can try, if you have access to a windows machine: INDDRecovery — a program for restoring corrupted InDesign documents
    After that, it's a question of how much money you want to throw at it. Markzware.com has a paid recovery service that will probably work.

  • I Try to open an Indesign document. The message: it is made in a newer version. Go tot CC: Help/Give your Adobe id/Start Indesign again and try to open the document. This doesn't work. How to solve this problem?

    I Try to open an Indesign document. The message: it is made in a newer version. Go tot CC: Help/Give your Adobe id/Start Indesign again and try to open the document. This doesn’t work. How to solve this problem?

    What version are you running?
    What version was it made with?

  • How to import multiple XML files into one inDesign document without copy/paste ?

    I use InDesign CS6, and I have several XML files with the same structure. Only the data are different.
    I created  an Indesign layout with some tagged placeholder frames on merge mode, for automated layout.
    Today for each XML file I have to create a new InDesign document to import the XML. Everything works fine. Then in order to have all Indesign layouts one after the other into a single Indesign layout, I have to use the copy/paste function.
    I mean for example, copy the contents of all documents to the first one. Or add pages of other documents to the first one, then delete spaces between each page.
    So my question is the following:
    How to repeat this process without copy/paste function, knowing that the
    number of XML files could be unknown.
    Thank you very much for your answer.

    Yes, effectively I would like to catalogue the files into one collection so i can save as one PDF and Print as one.:)
    I know I could save each AI as a pdf them then merge the pdf's together in acrobat, but I have nearly 100 files so would feel more comfortable seeing them all together before print / saving.
    My concern is that if I insert them in Ai, will the file resolution reduce? and will the ai still be editable and would it update the indesign file?
    Thanks for the quick reply

  • How Do I combine 2 InDesign Documents into 1 (in a very particular way)

    How do I combine two InDesign Documents into one in a very specific way.
    Here's my problem: I have two separate InDesign CS5 files for playing cards. File one is the front. File two is the back.
    The company that does my final print production needs the the cards sent as two separate PDFs. One for the card fronts, one for the card backs. Both of these InDesign (and the PDF export) files are arranged in the same way: page 1 is card #1, page 2 is card #2, etc. Nice and simple.
    However, I use a different company for producing prototype versions of the decks (the production printer can't do this economically). My prototype producer needs me to send a single PDF where page 1 is Card #1 Back, page 2 is Card #1 Front, Page 3 is Card #2 back, Page 4 is Card #2 front, etc.
    The decks I am building usually run 56 cards, but can be as large as 180 cards.
    So, what's the easiest way to automate this process? is there a way to combine two separate indesign files by "interleaving" the pages from the two original documents into a new larger document (where I could do a new PDF export)?  Or, is there a better way to do this in Acrobat Pro? At the moment I have to resort to drag and dropping each card from one PDF thumbnail pallet to the other. It's really time consuming and mind-numbingly boring.  Any Ideas?

    This script is actually pretty straightforward, so it's a good first
    challenge I think.
    I would script this in InDesign -- probably because I'm more familiar
    with InDesign scripting.
    To start learning the InDesign scripting basics, open the ExtendScript
    Toolkit (ESTK) which is almost certainly installed on your computer
    already. Go to the Help menu, and you'll find an entry there called
    Adobe Intro to Scripting. Read that. I think that's the best place to start.
    For the script in question, you would want to:
    1. make sure both InDesign documents are open. They would both have the
    same number of pages. (No scripting involved here, just make sure
    they're open before running the script.)
    2. loop backwards through the collection of document pages of one of the
    documents. (document.pages is the collection you're looking for)
    3. use the move() method of a document page to move it. (myPage.move())
    4. Learn about the LocationOptions enumerator so that when you move the
    page you can tell InDesign if you want to move it before, or after
    another page. (LocationOptions.AFTER or LocationOptions.BEFORE)
    5. Get a reference to the page in the second document before (or after)
    which you want to move the page in the first document.
    5. that's basically it
    I suggest that as you work your way through this (if you decide to take
    up the challenge), you post any questions you may have on the InDesign
    Scripting forum here.

  • Indesign CS4- how can I create a document with more 10 pages?

    Hi,
    I have just begun to practise with Indesign. I want to create a tale with 22 pages. My question is how?
    At the moment it's half solved, because I have done 10 sheets and each is 2 pages, but I need 2 more.
    When I want to add more pages, alert message advise me that's no possible. The maxium is 10.
    Thisaction have donetrough page menu.
    Do it exist any trick?
    _ other question: edit maestra page:
    How is the procedure forediting maestra page? I want to add number page, a headline.
    Urgent! It's a delivery extra urgenT!
    Thanks a lot

    I'm not sure if I understand the way your document is set up currently. It sounds to me like you have created single InDesign pages that each contain a two-page spread for your finished document. This is not a good method for laying out anything longer than will fit on the front and back of a single sheet of paper.
    Instead you should be making your InDesign document using the "facing pages" option and setting the page size the same as the folded size of the finished booklet. If you have color that bleeds, add a bleed allowance in the document setup dialog (click the show more options dialog). When your booklet is printed the pages need to be arranged back cover/front cover, inside front/inside back, page last/page 1 and so forth so they appear inthe correct order after binding. This is easily automated if the pages are separate, but if they start out on the same sheet it is up to you to get the order right from the beginning, and it is difficult to do design work in printer's spreads layout. Keeping pages in consecutinive order allows you to design in the same view that your readers will see.
    I'm not sure what the error message about the limit of 10 is, but it sounds like you are trying to make a single spread for the whole document. You can have a maximum of 10 pages in a single spread. The question is why do you want so many pages next to each other? Does the document fold out this way? A "normal" book uses many two-page spreads. You can add pages normally by dragging a master page icon into the live page area in the panel, or using the "insert pages" command from the panel menu.
    To edit a master page, double-click its name. Add your page number in a text frame by inserting a "current page marker" special character in the frame.
    Peter

  • CS3:How to link a file to a InDesign document?

    Hello all,<br /><br />I looked at in the LinkWatcher sample code to get an idea how to link a file to a document, I came up with the code below, the last line of code needs pageitemUID instead of pageUID which I  used it here:<br /><br />IDFile outFile = Utils<ImyUtils>()->getMyFile(); // it reads the file <br />InterfacePtr<IDataLinkHelper> dataLinkHelper(::CreateObject2<IDataLinkHelper>(kDataLinkHelperBoss)); <br />InterfacePtr<IDataLink>      dataLinkNew(dataLinkHelper->CreateDataLink(outFile)); <br /><br />IDocument* theFrontDoc = Utils<ILayoutUIUtils>()->GetFrontDocument();<br />IDataBase* database = ::GetDataBase(theFrontDoc); <br /><br />InterfacePtr<IDocument> piDoc(theFrontDoc, UseDefaultIID()); <br /><br />InterfacePtr<IPageList> pageList(piDoc, UseDefaultIID()); <br />     <br />UID pageUID(kInvalidUID);<br /><br />if (pageList->GetPageCount() >  0)<br /> {<br />     pageUID = pageList->GetNthPageUID(0);<br />}<br />// I try to link the file to the front document, although it say pageitemUID, as a second //parameter, but I don't want to link the file to a particular page item. is this a right thing to do?<br /><br />int32 result = dataLinkHelper->AddDataLink(database,pageUID, dataLinkNew); <br /><br />as I execute the code it doesn't add the file in  Link palette in CS3, but when I pass a UID of one page item such as text frame, it will add the name of file to link palette with a "1" comes to  end of row that shows how many times this file was included in the frame. but in case I have not a page item can I use the pageUID instead ?<br /><br />Thanks In Advance,<br />Mor

    Lee,
    Sorry I think I didn't use the right terminology, somehow I want to include/link the file (not with menu item 'place') programmatically in my current open Indesign document, then I expect to see the filename in Link palette. I can do this with linking to a page item in doc but I don't want to assign it to a particular page item, rather I want to assign it to doc. Is any approach to do it?
    Thanks again,
    Mor

  • [IDCS2]How to move the Snippet in a folder inside the Indesign Document Using Script?

    Hi
    How should i move all the snippet objects in a folder in to an Indesign Document using Javscript?
    Thanks
    myriaz

    Once you have the snippet in your document, how do you move it/select it? My snippet is a text frame with a table in it.
    This does NOT work:
    var myFoot = myDocument.pages.item(0).place("Hard Drive:Users:Casey:Desktop:footer.INDS")
    myFoot = myFoot[0]
    myFoot.geometricBounds = ["1", "1", "1", "1"]
    The snippet gets placed, but my error says "Object does not support the property or method 'geometricBounds'. This code works for normal images I place.
    JS - Mac - CS3
    Casey

  • Can someone please give me a step-by-step guide on how to embed a video in my Indesign document?

    Can someone please give me a step-by-step guide on how to embed a video in my Indesign document? I've got CS4 and I've tried to follow Adobe's instructions. Even Creative Suite 4 for Dummies. But I can't get it to work. And yes, I understand the video will only play when exported as a pdf -- not in the indesign document. Help! Donna

    Please repost in the InDesign forum along with full details including what the problem is.
    Telling us it doesn’t work is meaningless.
    Bob

Maybe you are looking for

  • Text Message Format Question

    When I tap the top of the screen on a text message to scroll to the top where it gives you 3 options,it does not have 'call' on the top left button, but 'email'. Any idea how to change it back?

  • Hardware Specs

    I recently purchased the new iMac 21.5" and have experienced problems with playing certain games (Call of Duty 4: Modern Warfare to name one). Despite exceeding the recommended specifications in every category (graphics, RAM, processor speed, etc) th

  • Graph data causes VI file to very large

    My VI reads data files with up to 500,000 data points and displays them in various formats in graphs.  If I "make current values default" with all these graphs populated the file size when I save the VI is very large (72 MB).  Is there any way to not

  • Why does mail stop working?

    Why does mail stop working when it has worked fine for years?

  • Why does Mac Mini Server refuse to accept my Airport WPA password?

    I've several Macs all able to access my ADSL net connection with no problems. However I am trying to configure a Mac Mini Server to do so but it keeps asking for the WPA password which I've correctly entered. Any clues for a solution please? Thanks P