Making a document with horizontal (or top) binding spine, e.g. for calendars

On request of Peter Spier I will post a script here to make a document with top binding for e.g. calendars. The script supposes you have made your document (calendar) on normal facing or non facing pages.

Dave Saunders script to make a booklet:
//DESCRIPTION: Shuffles pages for booklet printing
Written by Dave Saunders
Latest Revision: August 15, 2005
Copyright ©2005 PDS Associates
if (app.documents.length == 0) {
alert("There are no open documents.");
exit();
// Make sure that the pages are a multiple of four
myPages = app.documents[0].pages;
if (myPages.length % 4 != 0) {
alert("Document length isn't a multiple of four.");
exit();
// Document is suitable for converting to a booklet
Before proceeding, check to see if document needs to be saved
if (app.documents[0].modified) {
if (confirm("Document has unsaved changes. Click OK to save them and proceed.")){
app.documents[0].save(app.documents[0].fullName);
} else {
exit();
// Some trickiness to get a copy of the document opened
if (app.version == 3) {
app.userInteractionLevel = UserInteractionLevels.neverInteract;
} else {
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;
myFN = app.documents[0].fullName;
myName = app.documents[0].name;
for (n=0; 1000>n; n++) {
myTN = app.documents[0].filePath + "/" + myName.split(".indd")[0] + String(n) + ".indt";
if (File(myTN).exists) { continue } // Template already exists, try another name
app.documents[0].save(File(myTN),true); // Save as template
app.documents[0].close();
app.open(File(myTN)); // Open another untitled copy
File(myTN).remove();
break; // This loop will drop through if you already have 1000 template files with the same
        // name as your document with 0 - 999 as postfix; This is highly unlikely, but if it does
        // happen, I just go ahead and work on the original; the only warning will be that the
        // booklet document won't be untitled; it'll have the same name as your original document.
if (app.version == 3) {
app.userInteractionLevel = UserInteractionLevels.interactWithAll;
} else {
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
app.documents[0].documentPreferences.allowPageShuffle = false;
for (i=0; myPages.length > i; i++) {
origSection = myPages[i].appliedSection;
origNumbering = origSection.pageNumberStyle;
origSection.pageNumberStyle = PageNumberStyle.arabic;
pageName = myPages[i].name;
sectName = origSection.name;
if (sectName != "") {
  pageName = pageName.split(sectName)[1];
pageNo = Number(pageName);
// Following versioning logic for new section provided by Teus de Jong
if (app.version == 3){
  newSection = app.documents[0].sections.add(undefined, undefined, {pageStart:app.documents[0].pages[i], continueNumbering:false, pageNumberStart:pageNo, pageNumberStyle:origNumbering, marker: origSection.marker, name: origSection.name});
   origSection.pageNumberStyle = origNumbering;
} else {
  newSection = app.documents[0].sections.add({pageStart:app.documents[0].pages[i], continueNumbering:false, pageNumberStart:pageNo, pageNumberStyle:origNumbering, marker: origSection.marker, name: origSection.name});
  origSection.pageNumberStyle = origNumbering;
app.documents[0].documentPreferences.allowPageShuffle = true;
for (i=0; (myPages.length/2)>i; i++){
if (i % 2 == 0) {
  app.documents[0].pages[myPages.length - 1].move(LocationOptions.before,app.documents[0].pages[i*2],BindingOptions.leftAlign);
} else {
  app.documents[0].pages[myPages.length - 1].move(LocationOptions.after,app.documents[0].pages[i*2],BindingOptions.rightAlign);
// Just in case the shuffling has affected the position of a text-wrapped group:
app.activeDocument.textPreferences.zOrderTextWrap = !app.activeDocument.textPreferences.zOrderTextWrap;
app.activeDocument.textPreferences.zOrderTextWrap = !app.activeDocument.textPreferences.zOrderTextWrap;
To use the script, copy and paste to a text editor and save as a plain text file with an appropriate name in the form YourName.js (for CS) or YourName.jsx (for CS2) in the Scripts folder of the Presets folder of your InDesign CS or CS2 application folder (you could put it in a subfolder if you wish). Then to run the script, with your document open, double-click its name in the Scripts palette.

Similar Messages

  • Cannot search file content on Word document with embedded Excel table

    Cannot search file content on Word document with embedded Excel table. I have Windows 8.1 64-bit and Office 2010 Professional. Only phrases from within Excel tables are not searchable. I have many Word documents with embedded Excel table.
    I use it for my invoices. Those invoices are converted to pdf to be sent via mail. Searching the same phrases in related pdf files Works fine. And yes, folders are indexed, searching service is active......... For example I can find all invoices that have
    specific address or name, which is located in word document, but cannot find invoices with specific item name or price, being that information is in embedded Excel table. (not linked, embedded). I thought that is a question for Windows forum, but guys directed
    me here on Office forum. To clarify, I do not use Ctrl+F inside some document, but Windows Search in my folders. Probably the same happens in Office 2013.
    Thank you.

    Hi, I have a lot of Word documents (invoices, offers). Main part of those documents is embedded Excel file because it is easier to do mathematics in Excel than in Word. There are columns with description, unit price, quantity, taxes... Now, I need
    to find who bought HP switch 2530-24G last year. I open folder with last year invoices and search "2530". Cannot find any. But if that document was converted to pdf for mail, than I can find that phrase. Windows search does not work for content if the content
    is in embedded file.

  • How to creat pdf documents with printing restrictions in Aperture

    Hi,
    I wondered if it is possible to create a pdf document made up of 9-12 image per page contact sheets, to send to clients that restricts the client to open and view only i.e no printing allowed.
    Photoshop allows this, however i would like to create /correct versions in aperture and then create a pdf [with the above printing restrictions applied, simply to save time.
    the way i work in photoshop is to export approx a 500 to 1000 jpegs [ per client] in aperture to a folder which I then open with Bridge- create the contact sheets and then create the pdf document with printing restrictions applied.
    is there any way for me to make this simpler, especially just using Aperture?

    just been reading about terminal on another thread.... Spinning beach ball,,[page 2 of Aperture discussions].Apparently there is a command line explained there that can help speed up Aperture. I tried it but Had a problem when trying to type in my Password... It would not let me type anything....So I canceled the proceedure. [ knowing my luck I would cause some irrepairable damage to the machine].
    Think I need to do a lot of reading up to get up to scratch with folk using this discussion Board!!!
    With regards to the pdfauxinfo- is it complicated to get running, or does it run straiaght away in automator?

  • Opening documents with custom layer structure, especially default layer unlocked...

    Hi, is it possible to open documents such as jpg screenshots which are apparently a locked layer by default, as instead an unlocked layer?
    Would it even be possible/easy to have a method of opening such documents with the following layers:
    1 original image (unlocked)
    2 blank transparent layer
    3 white locked background
    4 group folder called 'archive' with a copy of the original image, with the group set to invisible
    Could a droplet be made to open documents with such a "precreated" layer set-up?
    For example, I would like to take a screenshot or scan, drag it onto a droplet, and have it open with the layer structure outlined above.
    Thank you thank you thank you...

    "The image is NOT locked."
    Shesh whatever you call it the image the background the initial layer "the so called layer" I would just like to change its default opening to UNLOCKED so at minimum, as I have said four times now, it can be placed in a folder called "Archive" without having to f'ing unlock it...scripting additional opening actions in addition to that at this point must be beyond your imagination
    "Have you tried working on the so called locked layer?"
    HAVE YOU READ THE ORIGINAL QUESTION????
    Working on the background layer is not my primary concern, organizing layers automatically at the start of a workflow is...but nevertheless...erasing part of the background in order to reveal imported images or drawings created beneath it on new layers requires the background be unlocked (so erased sections are transparent rather than black), changing layer order requires unlocking, moving the background on a resized canvas requires unlocking....and of course placing it within a folder requires unlocking -- what the hell is the advantage of it being default locked?? why isn't this optional?
    I can't imagine people working on complex images with multiple folders and forty plus layers in various folders and such -- nevertheless consistently want to leave the background layer just sitting there hanging out in its default locked state. I'm ALWAYS unlocking the damn layer...if only, for the FIFTH TIME, for organizational purposes (to change its layer order and place it within a folder).
    SHESH!
    "Methinks..." Oh please...next time read the question.

  • How can I share documents with other users from iWork?

    With iWork.com no longer in existence, how can I share large documents with other users? 

    Dropbox works pretty well for sharing.
    Jerry

  • Making a PDF with LiveCycle then being able to edit pages, insert pages, delete pages, attach files to document, be readable in Adobe Reader etc.

    We have been working for some time with LiveCycle to creat a documents and have experienced a host of problems with the end product.
    1.  Images inserted into the LiveCycle PDF document often come up as "broken links" after editing the document and resaving it.
    2.  Documents will not display in Acrobat reader unless a digital signature is applied to them and the document is re-saved.
    3.  After making the document, we are unable to use Adobe Pro to insert pages, delete pages, or insert files into the document as attachments.
    The end state was to use the simplicity of LiveCycle to create a document and do most of the hard work, and then save it as a PDF document that could be easily edited with Adobe Pro.  It has proven difficult, to say the least, to figure out how to make this work.
    Thanks in advance for any assistance.

    1- Thank you
    2- It only seems rational that if I make a form with LiveCycle that I should be able to view it with Adobe Reader or Adobe Pro.
    Making a form with LiveCycle to be distrubuted to personnel internally that have Adobe Reader and Adobe Pro and cannot open it without it having a digital signature field in it that has just recently been signed just doesn't make sense.  Nor does it seem to make sense to have to purchase 200 additional licenses just for LiveCycle so that people can open a PDF that was made with LiveCycle.  If I make it in LiveCycle and only people with LiveCycle can open it, what is the purpose of making it to begin with?
    3- This also totally sucks.  In a standard Adobe Doc I can at least attach documents to it?
    So, what, exactly then, is the purpose of LiveCycle if the only benefit it seems to provide is ease of creation, but the end product has way less functionality?
    And how do I go about contacting an Adobe rep on the phone in regards to this without getting "there is no support for this product, go to Adobe.com"
    We have millions of dollars of Adobe software and can't get support other than hunting and pecking in these forums?  Really?

  • Late Binding Word Automation creates a document with an unresponsive Ribbon

    I have a .NET ActiveX COM object that is calling Word and adding a template for processing. This template will get some data and then add in a layout template which will create the final document with the data and layout.
    When it is all said and done, the Word document has all the data, however, when the user tries to access the ribbon (click on one of the tabs or an item in the visible ribbon), nothing happens (like it is disabled).  You can click into the document
    itself and if the document has bolded text or something like that the ribbon changes to reflect the changes in font. 
    The only way for the ribbon to become responsive is to either minimize and reshow Word or select another application and then back to Word.  This "unlocks" the ribbon and you can interact with it.
    I accidently left in a reference to Word 2010 when I was testing something and then the code I have worked.  I went back to late binding and removed the reference to Office 2010 and it does not work even though none of my code has changed.  The
    Word constants/enums I am using were already locally created and the methods I am using have the either no parameters or the appropriate parameters provided as far as I know.
    In the code snippet below, the line "officeApp.ActiveWindow.Activate()" is what worked with early binding to
    cause the ribbon to be responsive immediately and allow the use to interact with the ribbon with no additional steps.  With late binding nothing seems to work.
    Code snippet :
    Dim reportDocument As Object = Nothing
    Try
    officeApp = GetObject(, "Word.Application")
    usingExistingWord = True
    Catch exp As Exception
    'Not Ideal - would prefer not to rely on Exception handle to catch this
    If officeApp Is Nothing Then
    officeApp = CreateObject("Word.Application")
    End If
    End Try
    Try
    'Open process template
    templateDocument = officeApp.Documents.Add(Template:=ProcessTemplate)
    Catch exp As Exception
    Success = False
    If Not usingExistingWord Then
    officeApp = Nothing
    templateDocument = Nothing
    End If
    Throw exp
    End Try
    If templateDocument Is Nothing Then
    'The process template was not loaded/added properly, abort code
    If Not usingExistingWord Then
    officeApp.Quit()
    officeApp = Nothing
    End If
    Success = False
    Exit Sub
    End If
    'hide Word while the process template runs its code.
    officeApp.Visible = False
    Try
    officeApp.Run("RunReport", _parameters, reportDocument)
    Catch exp As Exception
    Success = False
    If officeApp IsNot Nothing Then
    If templateDocument IsNot Nothing Then
    templateDocument.Close(SaveChanges:=False)
    templateDocument = Nothing
    End If
    If Not usingExistingWord Then
    officeApp.Quit()
    End If
    officeApp = Nothing
    End If
    Throw exp
    End Try
    If Success Then
    Try
    If reportDocument IsNot Nothing Then
    reportDocument.Activate()
    End If
    officeApp.ActiveWindow.Activate()
    officeApp.Activate()
    officeApp.ActiveWindow.ToggleRibbon()
    officeApp.ActiveWindow.ToggleRibbon()
    Catch ex As Exception
    End Try
    End If
    'Done - close the process template
    templateDocument.Close(SaveChanges:=c_wdDoNotSaveChanges)
    End If
    Thanks in advance for any help you are able to provide!

    Hi gardmica,
    Thanks for the detail explaintation. However I still failed to reproduce the issue. Here is the code I tested:
    Public Class Class1
    Sub Main()
    Dim reportDocument As Object = Nothing
    Dim usingExistingWord As Boolean
    Dim officeApp As Object
    Dim templateDocument As Object
    Dim ProcessTemplate As String
    Dim Success As Boolean
    Dim c_wdDoNotSaveChanges As Boolean
    Success = True
    ProcessTemplate = "C:\Users\UserName\Desktop\ProcessAndLayoutTemplates\MailMerge Process XML.dot"
    Try
    officeApp = GetObject(, "Word.Application")
    usingExistingWord = True
    Catch exp As Exception
    'Not Ideal - would prefer not to rely on Exception handle to catch this
    If officeApp Is Nothing Then
    officeApp = CreateObject("Word.Application")
    End If
    End Try
    Try
    'Open process template
    templateDocument = officeApp.Documents.Add(Template:=ProcessTemplate)
    Catch exp As Exception
    Success = False
    If Not usingExistingWord Then
    officeApp = Nothing
    templateDocument = Nothing
    End If
    Throw exp
    End Try
    If templateDocument Is Nothing Then
    'The process template was not loaded/added properly, abort code
    If Not usingExistingWord Then
    officeApp.Quit()
    officeApp = Nothing
    End If
    Success = False
    Exit Sub
    End If
    'hide Word while the process template runs its code.
    officeApp.Visible = True
    Try
    'officeApp.Run("RunReport", _parameters, reportDocument)
    Catch exp As Exception
    Success = False
    If officeApp IsNot Nothing Then
    If templateDocument IsNot Nothing Then
    templateDocument.Close(SaveChanges:=False)
    templateDocument = Nothing
    End If
    If Not usingExistingWord Then
    officeApp.Quit()
    End If
    officeApp = Nothing
    End If
    Throw exp
    End Try
    If Success Then
    Try
    If reportDocument IsNot Nothing Then
    reportDocument.Activate()
    End If
    officeApp.ActiveWindow.Activate()
    officeApp.Activate()
    officeApp.ActiveWindow.ToggleRibbon()
    officeApp.ActiveWindow.ToggleRibbon()
    Catch ex As Exception
    End Try
    End If
    'Done - close the process template
    templateDocument.Close(SaveChanges:=c_wdDoNotSaveChanges)
    End Sub
    End Class
    Did I miss any step? Does the issue exist when you didn't run the "RunReport" macro?
    Also I notich that the template is working in a compatibilty mode, is it helpful that convert it via File->Info->Convert?
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I am busy making a website with iweb. Do you know if it is possible to make a page with a slideshow which does not contain jpg's but other documents?

    I am busy making a website with iweb. Can I only make a page with a slideshow containing jpg's? I would like to make a (pages) document with pictures and have this as a slideshow. Is that possible?

    If you use Keynote rather than Pages you can export as HTML to get a slideshow...
    http://www.iwebformusicians.com/Banner-Slideshow/HTML-Slideshow.html
    Or you can use a JQuery slider that will display text, images, movies etc...
    http://www.iwebformusicians.com/Banner-Slideshow/Anything-JQuery-Slider.html

  • XML document must have a top level element. Error processing resource

    Hi,
    I am trying to send a XML file to a web browser from a servlet. I read the contents of the XML file into a string and I am sending it to the brower. Before I do this I set the 'Content-type' header of the httpResponse to "application/xml" . Embedded in the XML file is an xml-stylesheet elemetn indicating which *.xsl stylesheet to use to parse the XML content.
    I get the following error:
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    XML document must have a top level element. Error processing resource 'http://127.0.0.1:8080/testReplyingXML/xml-to-html.xs...
    Now, if I take the stylesheet element out of the XML string I sent, then the browser stores the content into and *.xml file. I manually run the "xml-to-xsl " stylesheet mentioned in the error output above, and there is no problem, the xml content gets successfully transformed in a viewable HTML .
    It is only when I embed the "stylesheet" element into the XML content that I get this error.
    So the browser is receiveing valid XML.
    I am not sure if the above error is complaining about the XML content I send or the stylesshet .
    Does anyone have an idea of what am I doing wrong?
    For your information here are my servlet code and the XML file:
    servlet:-
    package webapps.testReplyingXML;
    import java.io.BufferedReader;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import java.io.FileReader;
    import java.util.Enumeration;
    import java.util.StringTokenizer;
    import java.io.PrintWriter;
    public class ReplyXML extends HttpServlet {
              static int transactionCount = 0;
              public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException ,IOException {
                   String Q_PARAM = "query";
                   String requestString = req.getQueryString();
                   for ( Enumeration en = req.getParameterNames() ; en.hasMoreElements() ; )
         String k = (String)en.nextElement() ;
         String[] x = req.getParameterValues(k) ;
         String s = null;
         String DATA_PARAM= "";
         for(int i = 0 ; i < x.length ; i++ )
         s = x[i] ;
         //System.out.println("s = " + s);
         if (k.equals("query")){
              try {
                             //res.setHeader("Content-Type", "application/xml");
                             //res.setHeader("Transfer-Encoding", "chunked");
                             //res.setHeader("Cache-Control", "no-cache");
                             //res.setHeader("Server", "Jetty/5.1.10");
                             //res.setHeader("Pragma", "no-cache");
                             //res.setHeader("X-Joseki-Server", "Joseki-3.0-dev");
                             res.setStatus(res.SC_OK);
                             StringBuffer fileData = new StringBuffer(1000);
                        BufferedReader reader = new BufferedReader(new FileReader("sparql_results.xml"));
                        char[] buf = new char[1024];
                        int numRead=0;
                        while((numRead=reader.read(buf)) != -1){
                        String readData = String.valueOf(buf, 0, numRead);
                        fileData.append(readData);
                        buf = new char[1024];
                        reader.close();
                        String xmlMsg= fileData.toString();
                        System.out.println("XMLMSG= " + xmlMsg);
                             PrintWriter outresp = res.getWriter();
                             outresp.println(xmlMsg);
                             outresp.close();
              }catch (Exception e) {
                   e.printStackTrace();
              public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
                   doGet(req, res);
    XML FILE:
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="xml-to-html.xsl"?>
    <sparql
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:xs="http://www.w3.org/2001/XMLSchema#"
    xmlns="http://www.w3.org/2005/sparql-results#" >
    <head>
    <variable name="book"/>
    <variable name="title"/>
    </head>
    <results ordered="false" distinct="false">
    <result>
    <binding name="book">
    <uri>http://example.org/book/book6</uri>
    </binding>
    <binding name="title">
    <literal>Harry Potter and the Half-Blood Prince</literal>
    </binding>
    </result>
    <result>
    <binding name="book">
    <uri>http://example.org/book/book5</uri>
    </binding>
    <binding name="title">
    <literal>Harry Potter and the Order of the Phoenix</literal>
    </binding>
    </result>
    <result>
    <binding name="book">
    <uri>http://example.org/book/book4</uri>
    </binding>
    <binding name="title">
    <literal>Harry Potter and the Goblet of Fire</literal>
    </binding>
    </result>
    <result>
    <binding name="book">
    <uri>http://example.org/book/book3</uri>
    </binding>
    <binding name="title">
    <literal>Harry Potter and the Prisoner Of Azkaban</literal>
    </binding>
    </result>
    <result>
    <binding name="book">
    <uri>http://example.org/book/book2</uri>
    </binding>
    <binding name="title">
    <literal>Harry Potter and the Chamber of Secrets</literal>
    </binding>
    </result>
    <result>
    <binding name="book">
    <uri>http://example.org/book/book1</uri>
    </binding>
    <binding name="title">
    <literal>Harry Potter and the Philosopher's Stone</literal>
    </binding>
    </result>
    </results>
    </sparql>

    Error processing resource http://127.0.0.1:8080/testReplyingXML/xml-to-html.xs...
    Well, if one more character had been deleted from that message then you would have a problem. But as it is, the error message says there's an error processing a resouce whose name ends with "xml-to-html.xs" followed by something. That would be the stylesheet if I'm not mistaken. Most likely the browser can't find it at the URL mentioned in the error message.

  • When I print a document with Arabic script in In Design the characters appear in an inverted form, in the opposite direction, while the printer doesn't do this with other software such as Word

    When I print a document with Arabic script in In Design the characters appear in an inverted form, in the opposite direction, while the printer doesn't do this with other software such as Word

    (The small field at the top of questions is to type just a title; the large field is to type your full question in, along with anything else that may help us help you.)
    When you say "print", do you mean the text is correct in your InDesign file? If you export the document to a PDF, is it still correct? Final test: if you print the PDF to your printer (making sure you use the same driver and setting), is it wrong? Then it's your printer driver, trying to be smart when it should not. Locate a Settings dialog where you can switch off options such as this one. Were I a betting person, I'd tell you to look for something called "Auto-correct mirrored documents".

  • Final Cut Pro X is exporting video with horizontal lines?

    I filmed a show with 2 different cameras (one is a canon vixia, the other is a canon dos 7D, i realize the quality is different for them) and I used the multi cam editor to match h up the clips and audio file to switch back and forth. I think i created proxy media to use for the multi cam clip. Whenever i export my movie, the movie plays with horizontal lines, and whenever there is faster motion, the person gets blurred. What is making final cut pro x export like this? How do I fix this? I've tried exporting with Apple ProRes 422, Apple ProRes 422 (Proxy), and H.264, but all video files have the lines going through it and the motion is a bit blurry. Please help me!!

    There are quite a few Vixia models from Canon; which is yours?
    Without looking at the image, it's not certain, but your description sounds like interlaced footage displayed on a computer. The 7D only shoots progressive, so it's possible your other cam was set to record interlaced. If your first clip placed on the timeline was an interlaced clip, FCP would automatically set the project to interlaced.
    In a addition to your model #, what would be useful is to select one of the Vixia clips in the browser and then to take a screen shot of the top  part of the Info pane.
    Russ

  • JS - Center Selection to Artboard / New Document with certain Artboard size

    TL;DR:
    how do I center my current selection to the artboard?
    just like hitting the "horizontal align-center" and "vertical align-center" buttons.
    Hi,
    I've been searching for the last two hours and before my head hits the keyboard I wanted to ask you for help.
    What I'm struggling with:
    in my init function i create a new document and then copy all layers from the previous document step by step to the new document and then save it as SVG.
    // Init
    (function(){
              destination = Folder.selectDialog('Select folder for SVG files.', docPath);
              if (!destination){return;}
              holderDoc = app.documents.add();
              stepThroughAndExportLayers(docRef.layers);
    my problem is that holderDoc = app.documents.add(); always creates a document that is not the same size as my initial document where the layers get copied from.
    so I want the exact same artboard size as in my initial document.
    I'm fine with either doing it as fixed values or taking directly the values of the inital doc.
    i tried this in the segment where I create the new document:
    // Init
    (function(){
      destination = Folder.selectDialog('Select folder for SVG files.', docPath);
      if (!destination){return;}
      holderDoc = app.documents.add();
      holderDoc.artboards[0].artboardRect = [0,0,128,128];
      stepThroughAndExportLayers(docRef.layers);
    and get this error message:
    "Error 1200: an Illustrator error occured: 1346458189 ('PARM')
    Line: 83
    -> holderDoc.artboards[0].artboardRect = [0,0,128,128];"
    which from what I've read on the web means that illustrator doesnt know what document to pick. but i have called it directly. so what could be the issue?
    to clearify: I do not want to fit the artboard to the images/layer. the artboard should always have a certain size. (for me 128px by 128px)
    I would highly appreciate you helping me with either fixing my approach or propose a completely new one.
    Thanks so much in advance.
    // edit: workaround
    (function(){
              destination = Folder.selectDialog('Select folder for SVG files.', docPath);
              if (!destination){return;}
              var activeArtboard = app.activeDocument.artboards[app.activeDocument.artboards.getActiveArtboardIndex()];
              var ABRect = activeArtboard.artboardRect;
              holderDoc = app.documents.add();
              holderDoc.artboards.add(ABRect);
              holderDoc.artboards.remove(0);
              holderDoc.artboards.setActiveArtboardIndex(0);
              //stepThroughAndExportLayers(docRef.layers);
    i now added a new artboard to the new document with the same size as the artboard on the initial document.
    i remove the predefined artboard on the new doc and set the new artboard as active.
    BUT!
    the artboard is now not centered into the window. which lets illustrator place my image with ctrl+c -> ctrl+v somewhere outside the artboard.
    i now need to align my selection to the center of the artboard. but i cant find any reference on how to center a selection to the artboard.

    yes of course. i never modify the author's comments in original scripts.
    but I wont post the script anywhere when it doesnt work anyway haha.
    this is what I've done now:
    // Init
    (function(){
              destination = Folder.selectDialog('Select folder for SVG files.', docPath);
              if (!destination){return;}
              var activeArtboard = app.activeDocument.artboards[app.activeDocument.artboards.getActiveArtboardIndex()];
              var ABRect = activeArtboard.artboardRect;
              // create new document with same artboard as original
              holderDoc = app.documents.add(DocumentColorSpace.RGB, new UnitValue ((Math.abs(ABRect[0]-ABRect[2])), "px"), new UnitValue ((Math.abs(ABRect[0]-ABRect[2])), "px"));
              stepThroughAndExportLayers(docRef.layers);
    in order to create the new document with the same dimensions as my orignal doc, I first read the artboardRect dimensions of the current artboard and then create the document with those values passed as parameters. the calculation is to get the real width since artboardRect gives you left,top,right,bottom values and not just height and width.
    this only works for square formats though. to make it properly you'd have to change the second "new UnitValue" to use the top and bottom values of artboardRect but I currently dont need to do so.
    * Layers to SVG - layers_export.jsx
    * @version 0.1
    * Improved PageItem selection, which fixed centering
    * @author Anton Ball
    * Exports all layers to SVG Files
    * I didn't want every layer in the SVG file so it first creates a new document
    * and one by one copies each layer to that new document while exporting it out
    * as an SVG.
    * TODO:
    * 1. More of an interface wouldn't hurt. Prefix option and progress bar of some description.
    // Variables
    var docRef = app.activeDocument,
              docPath = docRef.path,
              ignoreHidden = true,
              svgExportOptions = (function(){
                        var options = new ExportOptionsSVG();
                        options.fontSubsetting = SVGFontSubsetting.GLYPHSUSED;
                        options.embedRasterImages = true;
                        options.fontType = SVGFontType.OUTLINEFONT;
                        return options;
              destination, holderDoc;
    // Functions
    var stepThroughAndExportLayers = function(layers){
              var layer,
                        numLayers = layers.length;
              for (var i = 0; i < numLayers; i += 1){
                        layer = layers[i];
                        if (ignoreHidden && !layer.visible){continue;}
                        copyLayerTo(layer, holderDoc);
                        // Resize the artboard to the object
                        selectAll(holderDoc);
                        exportAsSVG(validateLayerName(layer.name, '-'), holderDoc);
                        // Remove everything
                        holderDoc.activeLayer.pageItems.removeAll();
              holderDoc.close(SaveOptions.DONOTSAVECHANGES);
    // Copies the layer to the doc
    copyLayerTo = function(layer, doc){
              var pageItem,
                        numPageItems = layer.pageItems.length;
              for (var i = 0; i < numPageItems; i++){
                        pageItem = layer.pageItems[i];
                        pageItem.duplicate(holderDoc.activeLayer, ElementPlacement.PLACEATEND);
    // Selects all PageItems in the doc
    selectAll = function(doc){
              var pageItems = doc.pageItems,
                        numPageItems = doc.pageItems.length;
              for (var i = 0; i < numPageItems; i += 1){
                        pageItems[i].selected = true;
    // Exports the doc to the destination saving it as name
    exportAsSVG = function(name, doc){
              var file = new File(destination + '/' + name + '.svg');
              holderDoc.exportFile(file, ExportType.SVG, svgExportOptions);
    // Makes sure the name is lowercase and no spaces
    validateLayerName = function(value, separator){
              separator = separator || '_';
              //return value.toLowerCase().replace(/\s/, separator);
              return value.replace(/\s/, separator);
    // Init
    (function(){
              destination = Folder.selectDialog('Select folder for SVG files.', docPath);
              if (!destination){return;}
              var activeArtboard = app.activeDocument.artboards[app.activeDocument.artboards.getActiveArtboardIndex()];
              var ABRect = activeArtboard.artboardRect;
              // create new document with same artboard as original
              holderDoc = app.documents.add(DocumentColorSpace.RGB, new UnitValue ((Math.abs(ABRect[0]-ABRect[2])), "px"), new UnitValue ((Math.abs(ABRect[0]-ABRect[2])), "px"));
              stepThroughAndExportLayers(docRef.layers);

  • I cannot open Pages from the app or from a saved document on the desk top.  I get an error: "The application Pages cannot be opened  -1712"  Any suggestions?

    I cannot open Pages from the app or from a saved document on the desk top.  I get an error: "The application Pages cannot be opened  -1712"  Any suggestions?

    The following previous discussion has a solution that worked for a variety of people with the -1712 error on a variety of applications and may help: The application Safari can't be opened -1712

  • Documents with Smart Objects - Very slow to open and Save - CS6 Photoshop

    When opening and saving documents with smart objects photoshop freezes the adobe PS loader (circle dots) is replaced and the system loader (multi colored wheel of death) spins for 30 seconds or more.
    What I've tried so far based off looking at various posts.
    Photoshop Preferenes
    Save in Background off
    Maximise PSD and PSB file compatability never
    Cache Tile Size: 128k
    Advanced Graphic Processor Settings: Basic & Normal
    Layer Panel options: No Thumbnail
    Observations and workthroughs to date
    The file size and amount of smart objects effects the file expotentially i.e. The more smart objects you have the worse it gets
    These files worked perfectly in PS CS5
    It also happens on files natively created in PS CS6
    The CPU is maxing out at 100% while PS loads
    Closing or opening suitcase has no effect.
    System:
    iMac 27-inch, Mid 2011
    Processor  3.4 GHz Intel Core i7
    Memory  16 GB 1333 MHz DDR3
    Graphics  AMD Radeon HD 6970M 1024 MB
    Mac OS X Lion 10.7.5 (11G63)
    Suitcase 4
    Anyone got any ideas? This is making me go nuts!

    A solution!
    It turns out the problem in my case was in fact Suitcase. Previously, I'd tried turning it off, but that didn't fix the problem, so this time, I uninstalled it completely and the problem disappeared. I then began re-adding it (installed 15.0.1, upgraded it, etc.) and the problem resurfaced with the addition of the Photoshop-specific plugin. Deleting that plugin solved the problem. So it seems that "disabling" Suitcase by stopping the TypeCore doesn't seem to actually disable all of the tentacles it sticks into your system.
    You can find the plugin here: Applications / Adobe Photoshop CS6 / Plug-ins / Automate / ExtensisFontManagementPSCS6.plugin
    (After a restart, I also had to delete the font cache, as described here http://helpx.adobe.com/photoshop/kb/troubleshoot-fonts-photoshop-cs5.html but your mileage may vary.)
    Alternately, if you don't want to delete the plugin, disabling it from within Photoshop seems to work as well. To do that, go to File > Automate > Extensis, click Preferences..., then deselect Enable Suitcase Fusion 4 Auto-Activation.
    Fortunately, the plugin doesn't seem necessary at all to use the the core functionality of Suitcase (enabling and disabling fonts) in Photoshop. I didn't even know what these app-specific plugins did until researching this problem, and I still don't quite understand the point of them. I guess they allow you to let the apps for which they're installed do a little bit more of their own management (enable a font via Suitcase that isn't enabled system-wide), but that seems like more control than I need--if I'm enabling a font, I want all my software to be able to use it.
    Anyway, the problem seems to be completely solved on my system now, though I just did all this, so more testing over the next few days is required. I'll post here if any issues crop up. I'm interested in hearing if this solves it for anyone else as well.

  • How do I open OS 9 documents with OS 10.4.11

    I need to know how to open documents created with OS 9 using 10.4.11
    My hard drive has been replaced and I no longer have OS 9 on my system, plus, I don't have an old OS 9 install disc. I've got a ton of important documents I thought I'd open and try to convert to something that could be shared using Pages. But, no such luck.
    I'm fairly sure these documents were created using OS 9. The icons show a diagonal pencil with an upper case A in the top left half, a bar graph in the lower right half of a page with the upper right corner turned down. (I'm sure you're probably familiar with the icon, if you're old enough to remember the 90's)
    I just got Open Office for Word but haven't installed it yet. Does Open Office (or someone else) have a download that will let me open old Apple docs?
    Is there a simple solution to my problem? HELP - I don't have hard copies!!

    About the only way you can open documents created in applications
    under OS 9.x would be to have access to the applications, and likely
    have those running under an OS 9 system or through OS X 10.x as
    a Classic system while not independently bootable from OS X.
    Since you do not necessarily need to have an OS 9.2.2 full installer
    or restore installation to get an OS 9.2.2 system (and apps folder)
    into your PPC G5 computer, you do need a way to load it into the
    computer. This can be drag and drop; since it will not be starting
    the computer. A copy of another similar computer's OS 9.2.2
    system folder and the OS9 applications folder should be the easy
    street to getting something into your G5.
    (Unless you have the original restore/install disc set for that G5,
    however, or something almost identical in vintage and version;
    actually running an installer to put an OS 9.2.2 system in there
    would be most unlikely.)
    A copy on to an external HDD (firewire) could be used as a
    Classic volume, it could be used by the OS X system to
    open some older documents. But I suspect you'd need to
    have Apple Works 6.2 or so, for the document to be read.
    That application was included for use in both OS 9.2.2
    and OS X 10.x There may be a chance you could open
    an AppleWorks document in OS X (with AW) by checking
    the document's preference (get info) panel to see if it says
    open as classic, and has a checkbox; or not.
    There is alot going on in a computer and to not have the
    original software installed or only part of it, makes some
    simple things difficult. My iMac G4 1.25GHz 17" machine
    has an OS 9 system folder and apps folder; I don't use it,
    but since it takes up almost no room on the 80GB HDD,
    to remove it makes virtually no sense; as nothing is gained.
    My iMac G4 has AppleWorks (in OS X) and also, it can see
    and open AW documents -- some AW documents, depending
    on how they were created, in AppleWorks w/o OS 9. But this
    is no necessarily a standard thing; it may not work at all in
    your computer. Classic (an OS 9.2 system folder) is a require-
    ment for pre-X applications to open, and a suitable application
    has to be there to run. The OS 9.2 system need not boot the Mac.
    There may be some other workaround; short of utilizing a second
    Mac with either a Classic - OS 9.2.2 system intact, or a more
    traditional dual-boot OS 9.2.2 and OS 10.x computer; and then
    save the file in a different manner, or export it via FireWire, CD
    or ? to the other Macintosh. Sometimes, a text document can
    be copy/pasted into an email or saved as a pdf and sent to
    another computer, and used that way. However, not being able
    to open the document without a translator, it may be a problem.
    If you can find an application that can see, open and translate
    an OS 9 created document in some application such as A.W.
    then you may be able to use the contents.
    (If you have AppleWorks in your G5 now, see if you can choose
    to have AW open this doc file; out of curiosity. It may translate.
    I've forgotten alot about these kinds of things, and no longer use
    OS 9.2.2 since I sold my last dual booting computers years ago.)
    Good luck in this matter!

Maybe you are looking for

  • I get an error when I try to buy more iCloud storage space

    I want to upgrade th the $40 20GB plan so I can sync all of my devices to iCloud, but I keep getting the "An unknown error has occured" when I try to buy the storage.  I have read through just about every thread here & not one of them has given me a

  • Java DC Build Error

    Hi all. I want to have an utility Java DC, I mean a DC with some Java classes having methods and constants to use in some others DC's. I have created the Java DC and add into the Java build path, some Webdynpro libraries, when i use those API's  the

  • 802.1x Problem After Installing Update 10.4.10

    After installing the 10.4.10 update (from 10.4.9), I have started having problems with authenticating using 802.1x over my wireless connection. I enter my login information when prompted, and after a few seconds (when it says "Authenticating..."), it

  • RoboHelp Server Service Crashing

    At random times, sometimes hours, sometimes days apart, the RoboHelp Server Service stops and our server is therefore down. We are running on Windows 2003 Server. I am using internally created databases instead of SQL. What could be the cause of this

  • Error when extracting the text data

    Hi all I am getting an error when transfering the text data thru flat files . It is asking " No transfer structure available for the source system ," and saying that 0langu is not assigned to source syatem.I am working on 3.5. pls suggest me. thanks