Way to detect if an Indesign Document has unsaved changes

I have an InDesign document that I have saved. After saving the document, I make some changes to it. Now I want to detect if there are any unsaved changes in the document through JSX. I have tried to use the property document.saved, but this method only tells me if the document was saved for the first time.
If have some unsaved changes in a document that has been previously saved, document.saved still returns true.
Is there any other way to detect unsaved changes for a document?

@Kapoor – you could tell by the layoutWindow name. If a * is in front of the name, the document is not fully saved.
if(app.documents[0].layoutWindows[0].name.match(/^\*/)){$.writeln("doc not saved!")};
At least this is true for layout windows on Mac OSX.
In Windows the little * could be at the end of the name.
Can't remember. Currently I'm on OSX 10.7.5.
If it is indeed on the left right side of the name, you have to check on what OS the script is running and do the match accordingly.
Uwe
//EDIT

Similar Messages

  • Is there a way to trace back an indesign document from which a certain jpeg was exported?

    I have a jpeg image that was exported from indesign a long time ago. I no longer know where the indesign file is located or it's name, but I need to edit the text of the jpeg and the only way to do that is by editing the original indesign document and reexporting it. Is there a way to trace back an indesign document from which a certain jpeg was exported?

    boshalosh wrote:
    I have a jpeg image that was exported from indesign a long time ago. I no longer know where the indesign file is located or it's name, but I need to edit the text of the jpeg and the only way to do that is by editing the original indesign document and reexporting it. Is there a way to trace back an indesign document from which a certain jpeg was exported?
    Depending on how the text interacts visually with the image, it might be possible to use the fill property of the content-aware deletion feature of recent Photoshop versions to remove the text with little or no evidence of the deletion, then apply text over the graphic however you like.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • My InDesign document has two page 1s and I can't get the page numbers to work.  Help!

    My InDesign document has two page 1s and I can't get the page numbers to work.  Help!  How do I fix this?

    Do you mean the first section is starting at page one?
    And the second one now is starting at page two?
    So I would ask why you would need sections at all?
    Did you set the controls for Automatic Page Numbering?
    If you select the particular page where section two is starting in the Pages Panel, you could untick the Start Section option in the numbering and section dialog. That would remove the section. You cannot do that with the very first section, but you should set the first section to Automatic Page Numbering if you ever want to use your document with an inDesign book file.
    Uwe

  • This document enabled extended features in Adobe Reader. The document has been changed...

    I am trying to distribute an interactive order form to approx. 50 recipients with Acrobat X Standard which I purchased recently.  Computer is Windows 7.
    I can go through the form editing and distribution as usual, but when I (or a recipient) opens up the distributed form with Adobe Reader, they get the message: “This document enabled extended features in Adobe Reader. The document has been changed and use of extended features is no longer available. Please contact the author for the original version of this document.”
    Oddly enough, sometimes is does work, but 90% of the time it doesn’t.
    And I have another, older XP computer with Acrobat X installed, and it works fine 100% of the time – weird....can anyone help?

    Hi Ken
    We have so many people who have not updated they are trying on 9. I might just have to tell them we can’t support under reader 10.
    Thanks
    Tania
    Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity. -General George S. Patton
    Tania Lindenmayer \ Manager Organisational Shared Services \ Jabiru Community Youth & Children’s Services Assoc (Inc) \ Ph: (07) 3269 0044  Fax: (07) 3869 0675 \ [email protected]<mailto:[email protected]> \

  • Why does this occur "NI_Variable_RT.lvlib : GlobalVar_RT_MangleName.vi has unsaved changes?"

    I am trying to deploy a VI to the RT target and I get this message.
    "NI_Variable_RT.lvlib : GlobalVar_RT_MangleName.vi has unsaved changes"
    I am only allowed to deploy the VI if I save these changes. What are these changes referring to?
    Has the link between the variables on the Host PC and RT target broken due to which this message occurs?

    Hi Shan21,
    Do you not get an option to view the unsaved changes? If you want to find out the changes that have taken place in a VI, here is a description. If you navigate and open the VI and then go File->VI Properties. Under the General tab there is a button marked List unsaved changes. This will show you the changes that have taken place. 
    If you have made no changes that you are aware of to this VI, it maybe that you are converting it from a previous version to the most current version.
    Thanks,
    Andrew McLennan
    Applications Engineer
    National Instruments

  • The system has unsaved changes - WLC Startup-config

    Hi guys,
    Is there a command to see the startup-config?
    Or a command to see "what exactly" am I going to save when receiving the below message:     
    The system has unsaved changes.
    Would you like to save them now? (y/N)
    I tried show run-config vs uploaded configuration file, but the format is different so I cannot compare...

    Hi
    With Areonet OS (5508,2504,etc) you do not have this freedom
    If it is IOS you can do this using a single command "show archive config differences nvram:startup-config system:running-config" So with 5760/3850 you can do this.
    http://mrncciew.com/2012/11/08/show-archive-config-differences-is-your-friend/
    With Areonet 5508,2504 if you need to know what commands your configuration will adds to your config, you can do some sort of workaround (though it is not clean,still you can see what lines adding to WLC config)
    Do  "debug aaa tacacs enable" on your WLC CLI & then make a change using WLC GUI, you will see on your CLI what commands it will add to your config.
    So you have to make your changes one by one to learn all the CLI config addition to your configuration.
    HTH
    Rasika
    **** Pls rate all useful responses ****

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

  • Once uploaded, my indesign document has a different typeface.  Why is the font replaced?

    We have a standard branding font that we are required to use throughout all of our marketing collateral.  The cloud has replaced it with Times when it's saved.  Thanks for your help!

    We do not have access to your customer fonts. The fonts we support for image previews of InDesign files is documented here http://www.adobe.com/type/browser/fontinstall/cs6installedfonts.html.
    One solution is to convert the InDesign document to a PDF and upload. The PDF will retain the custom font. And the image preview will display as you expect.

  • Is there a way to find text within InDesign documents in a search using windows environment?

    We are working in Windows and transitioning from using Word to InDesign for our documents.  InDesign documents do not show up in the results when trying to search for a file name or file contents. How can we search for specific text within our InDesign documents?  Any suggestions would be greatly appreciated.

    http://markzware.com/products/pagezephyr-search/

  • Looking for a way to detect whether a document has been changed

    We have a document with a "validate" button.
    Pressing this button performs several validations and the result will be : "validated" or "not validated"
    The result is being displayed to the end user as a document status (with it's own color).
    Once the new "status" = "validated", the status should be automatically reset to "not validated" when the user makes 1 of more change to the document.
    Is there an easy way to do this?
    Is there a sort of document status you can fetch?

    Niall's way wil lwork but this one might be easier.
    Acrobat has a "dirty" flag that gets set each time a change is made to the doc. This is what tells Acrobat that you need to do a save when you quit. You can test this flag yourself. To access it use:
    event.target.dirty
    This will return true if a change has been made and false if no changes have been made. Note that if someone enters data into a field and then deletes that data the flag will still be true as a change was deemed to have been made.
    Paul

  • Is a way to detect whether a client box has an email client installed?

    Hi,
    I need to know whether an email client installation on a user box can be detected on JSP file. I prefer a user use his/her own email client to send emails over through the email server on the server.
    Thanks for your input.
    v.

    IE doesn't come with a mail client, technically. However, most Windows installations come with Outlook Express. Netscape has a built-in client, but you might not have to install it.
    If you are providing a feedback form for something, it is considered customary to allow the user to use it. Otherwise what's it for? E-mail requests unless tightly controlled have an easier chance of getting lost. At least with forms, you have more control of where the submissions go.
    So if you're going to write the form, you might as well show it, and provide an optional e-mail address to contact.

  • Why does my InDesign document become unsaved every time I print?

    I save my document. I print it. When the print dialog closes, my document is now unsaved.
    What has changed? Can I disable this behavior?
    It is quite unsettling when unintended "changes" are occuring to my document. Thanks.

    This is due to ID updating the Printer profile attached to the document. No other changes are made.

  • NI.StatechartInstantiateVI has unsaved changes (LabVIEW 2012)

    I was editing a statechart transition, and clicked "OK". LabVIEW gave me this dialog:
    If I click "Save - All", LabVIEW asks me to specify a location to store the VI. What's going on? I thought Statechart VIs are managed internally, and cannot me accessed by the programmer.
    Anyway, I clicked "Don't Save - All". The edits I made to the transition seem to have been preserved though.
    Has my statechart become corrupted?

    Hi Eric,
    I only saw that message for one specific statechart in my project. Other statecharts in my project are fine; new statecharts are fine too.
    However, if I try to rename that statechart, I will be asked to save changes to other VIs in my project, and I will eventually get a lot of messages in this form:
    Cannot load Help Information of "Pump_Variable.lvsc:Guard.vit".
    Cannot load Help Information of "Pump_Variable.lvsc:Action.vit".
    Cannot load Help Information of "Pump_Variable.lvsc:Trigger.ctl".
    etc. etc. etc.
    The names NI.StatechartInstantiateVI 60 &70 are foreign to me; the name style does not match anything remotely similar in my project

  • Is there a simple way to detect a textfield value has been changed on exit?

    The filler may enter the textfield then type something and revert it back,
    any command that can simply detect a field's value has been changed on it's exit event?

    Niall,
    I was thinking if there is any simple command like xfa.event.prevText in dropdown box that I can use,
    anyway, thanks for your help.
    Rgds.

  • Recurring images in INDESIGN document

    I am trying to find a way to make my workflow easier. I publish a weekly newsletter which will have a standard format and recurring chart images each week.  In order to avoid, inserting the same images ( which update with new data each week) each week, is there a way to set up the INDESIGN document so that it references the same image file on my hard drive which will get updated by me outside of the INDESIGN program?
    This so that all I have to do is update the text portion of my newsletter. Thanks for your help.

    JSTELLAK wrote:
    I am trying to find a way to make my workflow easier. I publish a weekly newsletter which will have a standard format and recurring chart images each week.  In order to avoid, inserting the same images ( which update with new data each week) each week, is there a way to set up the INDESIGN document so that it references the same image file on my hard drive which will get updated by me outside of the INDESIGN program?
    This so that all I have to do is update the text portion of my newsletter. Thanks for your help.
    If you want the updated image to be linked into the document, you need to save it in the same place as the old image, with the same name, so the link recognizes it. The link will display the out-of-date warning in InDesign's Links panel, because the datestamp has changed, of course. Update the link(s) to refresh the image(s) with the latest revised versions.
    Try to set up a directory structure for your publication such that you can revise the graphics in one location and copy them to the location and name that's linked to the publication.
    There may be some existing scripts that can save the current issue to a new name and perform link updates. Ask on the InDesign scripting forum.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

Maybe you are looking for