AppleScript InDesign Document Save as

Hello @ All!
I tried my first AppleScript. I tried to open a document and use "save as" (without dialog) to save the opened file in a new place and with a new name.
in case of question: i have to use indesign for a convert of the format.
Here is my Code-Snippet: (the part mentioned in the SDK failed!)
tell application "Adobe InDesign CS4"
set myDocument to open "Mac:IDS:InD-Files:delete_Test.indd"
if saved of active document is true then
tell active document to save saving in "Mac:IDS:test.indd" --speichern ohne save-dialog
end if
close document 1 --Dokument schließen
--end repeat --ende der schleife
display dialog "Alle Dateien bearbeitet"
end tell
After Running i get the failure message:
„saving of "Mac:IDS:test.indd"“ kann nicht gelesen werden."
cannot read this path or file.
The path exists.
What am i doing wrong? or where is the mistake!
Thanks for your help.
Kind regards

try this:
tell active document
save to "Mac:IDS:test.indd" --speichern ohne save-dialog
end tell

Similar Messages

  • Every time I try to save my Indesign document as an Interactive PDF, the option of either saving it as Interactive PDF or PDF is not showing.

    Every time I try to save my Indesign document as an Interactive PDF, the option of either saving it as Interactive PDF or PDF is not showing.

    You export to PDF, not save.

  • Not possible to save InDesign document?

    I'm working on a heavy InDesign document CS5, and now I can't save it. None of the options "Save" "Save As" or "Save a Copy" are possible to use.
    I made a export for psf where I can see my latest changes, but when I asked a colleague to make a copy of the InDesign-file, none of my latest changes where there.
    How can I save it now?

    Thanks, I tried it, didn't work. Now I have closed it and re-made all my latest work : ) Better luck next time I guess....

  • Multi-page InDesign document to single-page InDesign documents script?

    I'm looking for a script that can take a multi-page Mac InDesign CS2/CS3 document and split it into single-page InDesign documents. Any ideas or comments?

    Sorry I'm coming in at the end of a discussion, but there was not enough input from the O.P. Mike. Are we working on a folder of multiple ID files, or just one? Do we need to export all pages of documents or just a range? What platform is needed? Generally how many pp per document, how many documents? Cleanup needed on master pages or swatches etc?
    I'm talking in Applescript here.
    Do master pages really need deleted? If not, then no problem, just leave them in. My guess would be to just have your original ID docs in a folder, and an output folder. Start a script, select your input and output folders. Script grabs first document, counts number of pages. Repeats X number of times. Delete pages except the page of current loop, do a Save-As into output folder with new doc name. Reopen (or undo) and repeat page deletion and Save-As with new name. Go to next loop with next original document.
    I've written a bunch of loops that do some of these basic functions. I can't see that trying to duplicate the page structure on a new document would be very efficient in any language. Seems like too many pitfalls that could snag you, like master page items or locked items or document preferences you have to account for.
    Even with my script there may be text flow issues with linked boxes.
    Mike, any additional input on what you need? Thx

  • 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

  • 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.

  • Embedding SWF file into an Indesign document and later export as PDF

    Hi to everybody,
    I am searching now since 3 days for good solution of my problem. First I wanna tell you that the problem is not just to convert a swf-file into a pdf.  I did this many times with all animations, page flip and stuff.My situation is the following:
    I have varios catalogues with  more or less 12 pages each in an indesign format. Now I created an animated scroll down menu, which appears on an "index-page". On the menu I created buttons. One button for each catalogue. So the idea of the whole thing is to open a document and an index page appears where you have the animated menu and you choose the catalogue you wanna see. Until here it is quite easy. I created a swf file of each catalogue with my animations (as the special page turnover e.g.). So that I just need von Object in with I can load the different swf-files of these catalogues. I already did the process. I linked the buttons to the different swf files and so. So the problem is now when it comes to convert the whole thing into a PDF. Of course I convert it first to swf and then to PDF. After converting it to swf it works 100% fine, but in PDF not, suddenly the swf-files of the catalogues disappear.
    So the summary is, that I don't know how to embed swf files into an indesign document, creat buttons and interactions next to swf file, then save it to another swf, and then to a pdf without losing the first swf files within the pdf.
    Hope I made my self clear would be too nice if someone could help me or if someone may have a better idea of realizing the whole project.

    Jeffrey,
    Thank you for the answer. As you have written:
    I will also add that the ID's play mode contol [plays once] [repeat play] does not always control the file once in Acrobat.
    I presume you mean version of ID older than CS4 or version of Acrobat Reader older than 9.1
    It that is the case I will strongly recommend my visitors to upgrade to this version.
    I hope that would work.
    Thanks again.
    Peter

  • Why am I having lines/borders appearing around my placed Illustrator images in my Indesign Document?

    After I save my InDesign Document and close it... When I open it back up again. There are borders around all of my Illustrator placed images.
    I can't seem to find out what is causing them or how to get rid of them.
    When I am working on the file with it open they are not there.. it's only after I save, close and reopen.
    What the heck????

    Thanks for asking Will....
    I've gotten so confused with back issues of the file....saved in InDesign CC that I just started over..
    Was simpler to do that than to try to fix the one I was working on.....
    But while I have you trying to help me..
    Could you tell me how to set the document setup for a new document in InDesign CC to inches?
    I tried going into the preferences.... it's not there.. Looked through all of the preferences.. still can't find it.
    The documents I'm working on are 47" x 28" or thereabouts and I am having to go back to InDesign 5.5
    create the document there then open it in InDesign CC to have it the right size.
    Thanks for your help!

  • Content of linked files in a inDesign-document refuses to update when edited.

    The problem:
    I have a question about linked files in an inDesign-document.
    We have a indesign-file (indd) wich contains text, linked map-illustrations and ads.
    One of the linked maps gets changed by an external map-producer via an VPN-tunnel. He works directly on one of the existing linked files (a map), and does not change the name or location of it after editing.
    After the change, we open the indd-file again, but no dialog-window appears telling us that a link needs to be updated. So we do it manually, but the changed content doesn't get updated in inDesign.
    If we target the linked file and choose to open it in illustrator for editing, all of the changes that was ment to be there, still is. It just doesn't show up in indesign. This also shows that the linking isn't the problem.
    The file is only placed at one spot in the document.
    Workaround:
    1. If WE (not the external map-producer) open the linked file and save it again (same name, same location), inDesign instantly promts us to update the link and the graphics updates without problem.
    2. If we place the file in a another location of the same inDesign-file, the correct content shows. (But still, the existing one does not update.)
    Question:
    Is there any way you can think of that could make this happen?
    If so, How can we solve it without having to use the workarounds?

    This will work if you all use the file syncing of the Creative Cloud desktop application and then you use the Collaborate option for the folder containing all the files. Then it will work on each of your desktops.
    Links to files will not work in the browser when viewing the InDesign document from https://creative.adobe.com/files.

  • Placing files in an InDesign document

    Hello Adobe Forum!
    I'm hoping to get enlightened on a problem I was faced in yesterday while working on a new document. I like to modify images I'm using in Photoshop and then add them to my InDesign documents. When I tried to do this yesterday, like I always do, I couldn't find the photoshoped image in the directory I saved it in. I went into Windows Explorer looking for the image, making sure I had saved it in the right place, and in fact I did. For whatever reason, when in InDesign, the photoshoped images are not appearing in the directory. Like I mentioned, I do this often so I do see old photoshoped images in there but not the ones I worked on yesterday. I re-started my PC when I left work yesterday but when I came in this morning, and tried to do this again, nothing had changed.
    Anyone have an idea as to what's happening here?
    Thank you!!!

    Not sure what you mean by that.
    How did you save the file?
    Have you tried trashing the prefs? see Replace Your Preferences

  • Newbie question: saving jpeg files in indesign document

    hi there,
    i'm rather new to indesign and i can't get this thing to work:
    whenever i place a jpeg image (or for that matter, any other image format) into an indesign document and later move
    the jpeg file to a different location on my harddrive and then reopen the indesign file, the image is all pixeled. it seems like the image
    isn't saved inside the .indesign file, but is more of a referal to the file on my hard disk.
    is it possible to embed external files (like jpeg) into the actual indesign document and save them within this document?
    i'd be gracious for any help.

    Grant's answers are correct. You SHOULD use linked images and you should update them on the Links panel.
    There are specialized reasons it might be necessary to embed an image, but in general it's not a good idea: (1) It makes the files unnecessarily large, (2) if you make changes in the image, it can be updated in the InDesign file.

  • Proper way to set up an InDesign document for performance?

    Hello there,
    I'm wondering if I am using the product wrong, because I am having a heck of a time with the performance of my documents grinding my computer to a halt.
    I'm starting a new project, it's a 92 page book. On each page will be one or two *hi-res* pieces of art, at around 450dpi. Multiply this by 92, and you get something big. In the past I have simply placed the artwork which creates a link back to the original, and update the original as needed. However the last time I did this, when I got to like page 22, the InDesign document was no longer usable, it just killed the PC (a modern one).
    In that case I was placing Adobe Illustrator .ai files. Maybe that was the reason? In this case, I need to place PSD files.
    So my questions are a) what's the best way to place the files and b) what format should I place the PSDs? I need to export this in PDF form for print.
    Thanks for any help! It's been ages since I've done print work.

    Well, there a couple of vague statements in your question, but I am going to take a quick stab at it before we get into that.
    Yes, when you drop an image (photo, illustration, etc.), into an InDesign file it creates a link and you can edit the original as needed and it will be updated in the InDesign file.
    First make sure you're updating the files one at a time. Select the element you want to "fix", click Edit> Edit Original and make your changes. Save the original file, then check in with the InDesign file and see that the image has updated, then move onto the next.
    Second you can set up these linked files to display within InDesign as low-res versions to keep your system running faster. Give that a try also. You can set it up from View > Display Performance or by Right clicking on the image and selecting Display Performance > Fast Display.
    As for the vague statements, because others will ask.
    What version of InDesign?
    What type of system specifically? Processor, Ram, Video Card, Video Ram, etc.
    What is it doing to your system? Locks, crashes, explodes into pieces?
    p.s.
    Why 450 dpi files?
    What type of files? Tiff, PDF, JPEG, etc?

  • Linking a Google Docs document to an InDesign document

    Hi,
    I have written a book in Google Docs that I'm planning to typeset in InDesign.
    I want to keep editing and adding to the Google Docs document, while I'm typesetting in InDesign.
    Is there a way to have the Indesign document be "dynamically" linked to the Google Docs document? So that changes made in Google Docs can be easily "pulled into" the InDesign document?
    I have tried to save the Google Docs file as an RTF and I have imported that RTF as a linked file into my InDesign file, but every time I update the RTF the InDesign formatting is lost.
    I'd appreciate your help.
    Sincerely
    Sambodhi Prem
    Titirangi
    New Zealand
    Global Suitcase Design

    function(){return A.apply(null,[this].concat($A(arguments)))}
    ..  every time I update the RTF the InDesign formatting is lost ..
    No personal experience with this workflow, but it sounds to me this should not happen.

  • Script for replacing Image from a frame into InDesign document file

    Hi All,
    I am having an indesign document (indd) file with images and texts. I am using InDesign Server CS4 to run the scripts via SOAP.
    My requirement is to replace any of the images from the required frame/s of indesign document through scripting (I already have frame id of which image needs to be replaced). I have written written java-script file (as given below): but when I execute this java-script on InDesign Server via SOAP, I get follwoing error into InDesign Server:
    10/03/09 15:15:54 INFO  [javascript] Executing File: \\Server_IP_Address\JavaScript_File_Path\JavaScript_File.js
    10/03/09 15:16:01 ERROR [link manager] Link missing.; file:C:/help.gif
    10/03/09 15:16:01 ERROR [link manager] Link missing.; file:C:/Documents%20and%20Settings/All%20Users/Documents/My%20Pictures/Sample%20Pictures/ Water%20lilies.jpg
    10/03/09 15:16:01 ERROR [link manager] Link missing.; file:C:/Documents%20and%20Settings/All%20Users/Documents/My%20Pictures/Sample%20Pictures/ Winter.jpg
    Following is the java-script that is being used for replacing image from indd's frame:
    var myDocument = app.open(File('//Server_IP_Address/InDesignDocument_File_Path/Sample.indd'));
    var tmp_frmid="1339"; //frame id of which image needs to be replaced.
    for (var i=0;i<myDocument.pages.length;i++)
    var objPage=myDocument.pages.item(i);
    var objPageitems = objPage.pageItems;
    try
    var obj = objPageitems.itemByID(tmp_frmid);
    obj.images[0].remove;
    obj.appliedObjectStyle = null;
    var myImage=obj.place(File('//Server_IP_Address/Images_to_be_reolaced_Path/ImageFile.jpg'));
    var old_height = myImage.geometricBounds[2] - myImage.geometricBounds[0];
    var new_height = obj.geometricBounds[2] - obj.geometricBounds[0];
    var old_width = myImage.geometricBounds[3] - myImage.geometricBounds[1];
    var new_width = obj.geometricBounds[1] + ((new_height / old_height) * old_width);
    myImage.geometricBounds = [obj.geometricBounds[0] + "mm", obj.geometricBounds[1] + "mm", obj.geometricBounds[2] + "mm", new_width + "mm"];
    var diff = obj.geometricBounds[1] - myImage.geometricBounds[1];
    myImage.move( undefined, [diff,0] );
    break;
    catch(e)
    myDocument.save('//Server_IP_Address/InDesignDocument_File_Path/Sample.indd');
    var previewFile = File('//Server_IP_Address/Images_to_be_reolaced_Path/ImageFile.jpg');
    app.jpegExportPreferences.jpegQuality["JPEGOptionsQuality.low"];
    app.documents.item(0).exportFile(ExportFormat.jpg, previewFile);
    myDocument.close();
    I have very urgent requirement; if anyone have any idea; please suggest me. \
    It would be highly appreciable.
    Kind Regards,
    Prashant.

    http://www.automatication.com/selection-to-pdf-script.html
    Harbs
    http://www.in-tools.com

  • Inability to export from Indesign and save over exiting PDF on Mac Yosemite

    When I export an InDesign document to save as a PDF, it only works if the PDF doesn't already exist. If I try to replace a file, I get the error File is Open. Needless to say, the file is not open. I'm using InDesign CC 2014 Release and a Mac updated to Yosomite 10.10.1. The files is on a Windows server 2008 and I have full permissions.

    Try doing it on your Desktop. It may have to do with permissions for saving to the server. I believe there is an ongoing thread about difficulties saving to Windows servers with Yosemite.

Maybe you are looking for

  • Importing Service Invoices with description in document line

    Hello, I am importing service invoice but also want the put in the description. I don't know which field i need to use for the description. Below you see 1 line, it import oke but without the description field. document_lines RecordKey     AccountCod

  • LR won't import raw files shot in monochrome

    I just shot a wedding. Half the images were shot in color, the other half were shot in monochrome(black and white). upon importing into lightroom only the color images would import. With the black and white files I got the error message saying that t

  • When browsing my artists in iTunes, why is there multiple Various Artists?

    I am in the process of organizing my iTunes, and came across a problem. Under the artists tab of iTunes 11 I have two different options for my Various Artists (i.e. Soundracks and complilations). I tried to see if there was a difference in any of the

  • Using pattern in Index function

    Hi, We have a requirement where we want to get first alphabet wherever it appears in the string. For e.g. if we have 12XOF then we want to take out first occurance of Alphabet which is X. If string is 1234y then we want y to be in out output field. I

  • Will the artists videos from iTunes Festival 2014 be made available to purchase?

    I see that the artists videos currently on iTunes show the full concert for iTunes Festival 2014 - when these are no longer available to view for free will you make them available to purchase? Thanks! roclea