Performing operations on an open ("locked") document [JS] [CS5]

Hello!
We use JavaScript InDesign scripts, run on InDesign CS5 server, to create PDF proofs and JPEG previews of documents.
We are running into problems with doing these tasks if the document is open or an operation is already being performed - because the file is "locked".
After some searching, I found the enumeration, "OpenOptions.openCopy" option.  Using that option in code allows us to perform operations on a "locked" document.
http://www.indiscripts.com/blog/public/data/so-what-s-new-in-indesign-cs5-scripting-dom/en _ID-CS5-DOM-WhatsNewEnum.pdf
CODE:
     var myDoc = app.open("C:/InDesign/2100125319.indd", OpenOptions.openCopy);
My questions are:
1. When we use the "OpenOptions.openCopy" to open a copy of the document, does it open it in memory or create a new file?
2. Is there a downside to opening the document this way and/or a better way to do it?
Thanks in advance!
Jeff

I do understand you're trying to be helpful. I was just hoping providing the relevant code snippets would be sufficient so I didn't have to take the time to provide a "cleaned" version of the files and upload those to a public-safe location.
Zabeth69 wrote: If you don't understand what 'code at the bottom of the page' means, you have not used one of those systems. I don't know what causes the error code to come up (besides removing a Spry widget, I mean). So if it doesn't apply to you, ignore it.
This is exactly my point: I haven't used any of the DW "systems". I've always manually coded in DW, so I can't have removed a Spry widget in the first place. It wasn't until I installed the Widget using the Widget Browser that I started getting the error (I don't mean adding the datepicker widget to the code using the DW Insert menu - I mean installing the Widget into DW itself). Ignoring such an erroneous/incorrect error seems kind of silly, since every time I open the file I get the error message.
Anyway, as requested, the following are links to the contactUsCleaned.php page, and the php included headerCleaned.php file. Since these use php includes to complete the rendered HTML, they won't look right in the browser, but as you know viewing the source will show the relevant html, javascript, and jquery code. I didn't see any way to upload the files in this forum, which, due to the php code, would be preferable to see exactly what my code looks like...
http://www.eventidewebdesign.com/public/contactUsCleaned.php
http://www.eventidewebdesign.com/public/headerCleaned.php
The footer.php file the contactUs page includes is simply a set of HTML links to the pages on the site, copyright info, and the Google Analytics script. There is no other code in the footer.php file.

Similar Messages

  • Problem with opening cs4 document in cs5.5

    I have quite a big document of a catalog, created in InDesign cs4. It contains many layers and different master pages. When I open this document in cs5.5 layers and master pages get completely confused and the document looks completely different. When I created the inx-file in cs4 and opened it in cs3 everything was alright. Does anybody know what the problem in cs5.5 could the problem? Am I doing sth wrong?

    I've been looking at the file, and it is indeed a puzzlement.
    There is some good news, however. I don't know why it is happening (perhaps a bug, and maybe John would like to take a look at this, too), but it looks like the Paper-filled rectangle from Hinweise layer on the right of Master Ee is being copied to the left half of the actual document spreads on random layers. The pages that seem to be blank are easy to spot in the Page panel (22, 24, 26 & 32) and you can simply Cmd-Shift click on the rectangles on those pages to override and your text and graphics will be revealed. I'm not immediately picking up any other problems scanning quickly through the pages. For a quick and dirty get it done solution, I think this will work, though I would use the .inx file rather than the .indd for the conversion in CS5.5.
    I've looked through the file history, and it is long. This started out in 2007 in CS2 and has gone through updates in CS3 and CS4, and been recovered from crashes at least 4 times (which might have something to do with the strangeness). I also think there are a lot of extraneous unused frames on many of the pages. If it were my project, I'd probably clean it up as much as possible in CS4, even going as far as recreating the master pages in a new document and then going page by page and doing a copy/paste in place of all non-master objects into the new file if you don't want to spend the time to place everythign again from scratch, which in my opinion would be a better idea (I tried moving the pages to a new file, but that didn't make any difference in the CS5.5 conversion). You could also rebuild from Scratch in CS5.5.

  • When I try to open CS4 document in CS5 it is changing all my type to outline type???

    Has anyone else experienced when you open a CS4 document in CS5 that it changes your formatted text into outline text?

    It shouldn't.
    Maybe you should give us some more info...

  • Can I open CS2 documents in CS5, or even CS6?

    Hello!
    At long last I hope to upgrade from CS2. What is the most recent version of the Creative Suite I can upgrade to that will open CS2 documents? I'm assuming compatibility with the Creative Cloud is out of the question!
    Any guidance greatly appreciated.

    You were told wrong and perhaps the agent misread your question and
    thought you wanted to open CC files in CS2. That's not much of an excuse
    and I'm sorry you got bad information.
    I think you'll love Creative Cloud. Be sure to explore the tools you've
    never used before.
    I have a couple of Creative Cloud articles on my blog you might want to
    read: www.boblevine.us.
    Good luck.

  • Having trouble opening document in CS5

    I am trying to open a document in CS5, says I need plug ins. I found the appropriate plug ins in the adobe extentions manager but they are locked. Help?

    That error message is generally shown when you try to open an INDD file
    that was created in a later version of InDesign

  • Error message "An Error occurred while performing this operation" while opening a document.

    Hi Adobe..
    We are using Live cycle ES and ES2 for applying security on the document..
    With latest Mozilla and Chrome versions and with Adobe reader XI, if we try opening a document, we happens to see the below error message..
    Please advise us in getting this issue resolved...
    Thanks.

    To use XFA-based PDF forms on Firefox and Chrome, perform the following steps to configure Firefox and Chrome to open PDFs using Adobe Reader or Adobe Acrobat.
    Firefox configuration:
    1) Tools -> Options
    2) Click Applications
    3) In the Applications tab, type PDF in the search field.
    4) For Portable Document Format (PDF) content type in the search result, select Use Adobe Acrobat (in Firefox) from the
        Action drop-down list   
    Click OK and restart firefox.
    Chrome configuration:
    1) In Chrome, go to chrome://plugins/.
    2) Click Disable under Chrome PDF Viewer, and click Enable under Adobe PDF Plug-In.
    probably this would resolve the issue.
    Thanks
    Shivam

  • IPhoto Library locked in Yosemite; You do not have permission to open the document "iPhoto Library"

    Long story to get to the iPhoto part but may help someone who is in-the-know about what can be done for me...
    I turned on my computer a few weeks ago (iMac 27" late 2012, 2.9GHz Intel core i5) to access some photos in iPhoto and it would not load to the home screen but gave me the Disc Utilities Menu. From memory the options I had were; (1) Restore from Time Machine Back-up, (2) Re-install OSX, (3) Get online Help, (4) Repair or Erase using Disc Utility.
    I tried Repair in option 4... no success.
    I tried option 1 as I have my internal HDD backed up to an external HDD via Time Machine in case anything goes wrong... no success.
    I tried option 2 (which was Mavericks) and it loaded and took me to my desktop.
    When I tried to opened the iPhoto app in the dock there were no photos in it.
    After searching forums and the internet they suggested it may have been an iPhoto upgrade issue so I tried to update iPhoto but found it was already up-to-date.
    After looking, I found that the "iPhoto Library" in "Pictures" had a red circle with the white dash through it and was locked. When the "iPhoto Library" folder was double clicked I got the message "You do not have permission to open the document “iPhoto Library”.
    In all the trouble I have upgraded to Yosemite 10.10.3 (with Photos 1.0) and am obviously still having the same warning/error message come up when the iPhoto Library folder is clicked.
    Right click won't allow me to view package contents.
    The "Import" function in the "Photos" app won't do anything with the folder, and the "iPhoto Library" folder looks and functions the same in all of the back-ups on my external HDD Time Machine.
    I don't care if I need to use "Photos" or "iPhoto" but I do need to get the photos out because they are irreplaceable. If had know this problem was possible (especially while using Time Machine) I would have manually stored and backed my photos up in folders on another external HDD.
    Any help would be greatly appreciated, feel free to ask any additional Questions (but this is the first time I have posted in the forum so hopefully I can work out what is going on if you do reply to this post )
    Cheers.

    Thanks for the suggestion. I had tried this earlier with no success either. Even with the padlock unlocked I can't even change the tab that says "OPEN WITH". I still get the... "You do not have permission to open the document “iPhoto Library” message. You may also it continues to say "Fetching" where it should say my user name at the bottom.

  • Pages is "not responding" when I try to open any document on a Lion Operating System, Macbook Pro. What can I do?

    Pages is "not responding" when I try to open any document on a Lion Operating System, Macbook Pro. What can I do?

    Ah then that is the issue.
    1. Is Pages registered? It turns into a demo version after 3months otherwise.
    2. This makes it interesting as to what happens if it has, because a demo version can't/won't save and I'm curious if this causes a bug in the ever so wonderfully thought through process of versioning in Lion
    3. There may actually be a problem with one of the documents which again causes a bug in the ever so wonderfully thought through process of versioning in Lion
    4. You are entitled to AppleCare telephone support to try ands resolve this in detail which is difficult to do without seeing what is actually going on because there are multiple files involoved
    5. Which raises the issue of does it freeze consistently on hitting a certain document? In which case moving or archiving that document may get Pages to actually launch
    Peter

  • "Cannot perform operation, connection is closed" with Open MQ 4.4

    I am using Sun MQ 4.4 with Glassfish 2.1.1 on Red Hat 5.7.
    I am able to install glassfish cluster and all the instances are running fine. But, when I try to send a message to a topic, I get following exception
    javax.jms.IllegalStateException: [C4062]: Cannot perform operation, connection is closed.
    at com.sun.messaging.jmq.jmsclient.ConnectionImpl.checkConnectionState(ConnectionImpl.java:2468)
    at com.sun.messaging.jmq.jmsclient.XAConnectionImpl.createSession(XAConnectionImpl.java:105)
    at com.sun.messaging.jms.ra.ConnectionAdapter.createSession(ConnectionAdapter.java:383)
    Following is part of the stateless EJB where I am creating the session.
    @PostConstruct()
    private void init() {
    if (connectionFactory == null) {
    if (log.isTraceEnabled()) log.trace("Connection factory not set. Retrieving from server context.");
    InitialContext ic = new InitialContext();
    connectionFactory = (ConnectionFactory) ic.lookup("jms/testConnectionFactory");
    if (log.isTraceEnabled()) log.trace("Creating JMS connection.");
    connection = connectionFactory.createConnection();
    @WebMethod()
    public void send(){
    Session session = null;
    session = connection.createSession(true, Session.SESSION_TRANSACTED);
    I am trying to install these on a couple of new machines. Same application works on other machines so I am guessing this is a configuartion issue somewhere on these servers.
    My question is what would be a good way to find the cause of this failure.
    I have turned on log level to finest for ejb-container, jms, RA through glassfish Admin console, but no useful information.
    Also, I don't have the name of the servers in DNS yet. I am using IP address for specifying instances.
    Any suggestions ?
    Thanks
    Vineet

    Hi Tom,
    I used the demo/helloworld/helloworldmessage.java sample.
    By the way, I should add that the broker log contains lines like:
    [B1066] Closing [email protected]:2461 because "[B0061]: Client exited without closing connections"
    Is this what one would expect for a connection.close() ?
    It almost seems that this is happening only when the connection is nulled explicitly or the connection object is destroyed.
    One last thing:
    I was led down the garden path. The reason for the server being thread starved was that there were indeed connections not being closed/nulled.
    Thanks in advance,
    Patrice
    Edited by: paubry04 on Sep 13, 2007 8:21 AM

  • Opening of documents from Recent Doc/ dragdrop operation???

    Hi,
    I m using InDesign CS3 on MAC OS. I have 2 questions:
    1. I do not want my user to open files by dragging and dropping them into the app..How do i stop this drag drop action...I have no idea about this..I ve already disabled the open menu item..Pls help..
    2. How do i avoid a file from recovering automatically when the InDesign application is reopened after a force quit...
    Someone Pls guide me in doing these....
    Thank You.

    Someone Pls help...
    I have a new menu added to open specific documents alone...
    I ve disabled open menu item and now i do not want users to open any other document by:
    -> right clicking them and giving OpenWith
    -> dragging and dropping them into InDesign
    How to avoid these? Is it possible.... If yes,pls help...
    I m using ID CS3 on Mac OS X...
    Pls guide me...

  • XL Reports - EXCEL msg -You can only open the document as Read Only

    READ ONLY notification from MS EXCEL when two people try to run the same XLR report at the same time.  Here is what is going on:
    u2022     Person A runs an XLR report (SAP client running on a Local Machine)
    u2022     Person B runs the same XLR report and now gets a MS message to the fact that u201CYou can only open the document as Read Onlyu201D
    Can two people run and save the same report at the same time? If so, what do we need to do to allow this?

    Can two people run and save the same report at the same time ?
    The answer is NO.  It is because Excel locked the file.  Only one active user can do write operation on the file.  All other users may open the file read only.
    Thanks,
    Gordon

  • Cannot open Excel documents in Sharepoint 2010 Enterprise

    We keep having this recurring issue where sharepoint will not allow users to open Excel documents. They receive the error:
    "Unable to process the request. Wait a few minutes and try performing this operation again".
    I did some research and it turns out that a simple reboot causes the issue to subside, but it comes back again.
    Any ideas?

    ProTranslating-Frank,
    Please try these links
    You
    can set the time you want to Recycle under Recycling > Specific Times
    The solution is to disable the ASP.NET Impersonation again.
    Thread 1
    Thread 2
    Similar Blog
    Hope these will help you
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Open Pages documents from an older version

    I need to open Pages documents from an older version of Pages that I saved to an external drive from a computer that I no longer have access to.  My current operating system is 10.7.5 and I can't upgrade it right now.  I see that Pages 5.0 requires 10.10 or higher and I can't find older versions to download and from what I've read, it doesn't sound like I'd be able to open the old documents with the new version anyway.  I really need these documents. What can I do?

    I found it helpful to convert all my old Pages '08 files to .doc files.  They can be opened by the new version of Pages.
    Since the new version of Pages is no longer back compatible, and so not good for anything you want to keep for a long time, you might consider using an open source word processing application like Libra Office.  That's what I had to do.  After seven years of being a happy Pages user - archiving thousands of files in Pages -Apple has abandoned us.  I no longer think it is wise to use the new Pages and then five years down the road (or sooner) not to be able to open them in a newer version.
    If you would like a quick way to convert your Pages '08 files to .doc, let me know.

  • Recent Pages update isn't recognized on my MacBook Pro. Tried to open a document I created and I get a message that says I need to update to newer version to open that document. How do I reload the latest update for Pages in Maverick?

    After updates to Pages and several other applications I received an update to Mavericks 10.9, all of which were downloaded and uploaded to my MacBook Pro. After the uploads I created a document in Pages which I saved to my folder. Now when I try to open it I      get a message that says I need the latest version of Pages to open this document. What do I need to do to reload the last update to Pages so I can open my document?

    In both cases you have 2 versions of Pages on your Mac.
    Pages 5 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Judging from sterling r's response Apple has not only managed to confuse all its users, but also itself.
    Note: Apple has removed over 90 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Pages '09 should still be in your Applications/iWork folder.
    Archive/trash Pages 5, after exporting all Pages 5 files to Pages '09 or Word .docx, and rate/review it in the App Store, then get back to work.
    Peter

  • Some files in "DOCUMENTS" icon in dock won't open. Get msg saying You need a newer version of Pages to open this document." Have Pages 4.1 installed.  Same files will open ok from Finder, Pages App. Recently sync'd with ipad2 (Pages) after iOS5 installed.

    Some files in "DOCUMENTS" icon in dock won't open. Get msg saying "You need a newer version of Pages to open this document." Already have Pages 4.1 installed.  Same files will open ok from Finder/Pages App./selected file. Prob not noted until recently after sync'd with ipad2 (Pages) when I installed iOS5. Anyone-- please?!

    You have 2 versions of Pages on your Mac.
    Pages 5.2 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5.2 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Older versions of Pages 5 can not open files from later versions of Pages 5.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud and opened in a newer version of Pages is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has removed almost 100 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Rate/review Pages 5.2 in the App Store.
    Peter

Maybe you are looking for

  • Semitransparent Panel on fullscreened jPanel

    help me to make the AircraftCockpit a senitransparent jPanelimport java.awt.Color; import java.awt.Font; import java.awt.GraphicsEnvironment; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.JFrame; import java.aw

  • Driver for EMI 2/6

    Hello...does anyone know anywhere where I could find a driver for the EMI 2/6 that works on OSX? Nothing on the old emagic site or on DriverGuide.com

  • PDF to DOC. How to convert  formulas to pics.

    Hello there. I've got a PDF file containing text and formulas. I ran it through text recognition and exported to .DOC. The text recognition appeard fine, but the formulas became absurd. You may see this on screens below from Acrobat and next one from

  • Can LR filter or sort by pixel count or file size?

    LR ought to sort or filter images by pixel count and by file size. I can't seem to figure it out. Consider adding this capability.

  • HT6207 Problems installing security update 2014-002

    After automatically downloading the update, the iMac would not shut down. Instead the error message "upapproved caller" appeared. After manually shutting down the PC it would not restart (stuck on grey screen with rotating ring). Starting with the op