AutoSave only after editing the text?

Hi all, I have the script ofbelow.  Its working great I was wondering if there was a way to activate only if the text has been modified (be added or deleted etc...). I added the event listener and the doAutoSave () function.  This version, I have "trial" activate only before I save the value.  But my eventlisteners do not work. any eventlistener I he saves as soon as the Document is opened, if a change has been made or not.

#targetengine "saveEvery1mn"  

app.addEventListener( "beforeSave", doAutoSave );
function doAutoSave(){

main();  

var filter = function() {  
  var w = "InDesign files:*.indd;",  
  m = function(f) {return /\.indd$/.test(f.name); };  
return $.os[0]=="W"?w:m;  
}  
function main() {  
  var t = (new Date()).getTime();  
  var onIdleEventHandler = function(idleEvent) {  
  var doc = app.properties.activeDocument;  
if ( !doc ) return;  
if ( !doc.properties.fullName ) {  
  var f = File.saveDialog("You need to save your document now !", filter);  
if ( f ) {  
  doc.save ( f );  
  }  
return;  
  }  
  var t2 = (new Date()).getTime();  
if ( t2-t > 1000 )  {  
  t = t2;  
  doc.save();  
  }  
  }  
  var myIdleTask = app.idleTasks.item("autoSave");  
if ( !myIdleTask.isValid ) {  
  myIdleTask = app.idleTasks.add({name:"autoSave", sleep:100});  
  myIdleTask.addEventListener(IdleEvent.ON_IDLE, onIdleEventHandler, false);  
  }  
}  
}

I have also provided a script months ago that was able to detect changes in stories so it can show a number of characters 'real time '. so if you find this message, you will see how you can merge the two.

Loïc

Tags: InDesign

Similar Questions

  • Editing the text in all PDFs

    Hello

    I am very new to Acrobat and try to edit text in some of my documents, but can't seem to be able to do. I use Acrobat X Pro and I use the tool "Edit the text of Document", but the cursor does not change its text editing cursor. I tried to open other documents in PDF format and it seems that I am able to edit the text in PDF files, but not the text in others. For that I'm editing, I did the function of "recognize text." I can highlight text and even look in the document for some words, but can't seem to change the text. I can choose the text to delete or put a comment in them, but still can not delete a few words/letters & retyping.

    It's really frustrating, because these documents are the only reason why I wanted to Acrobat X - if I can edit a few words on them.

    Help, please!

    Unfortunately, it is hidden by default in Acrobat 10. To access the preflight check, click Tools, and then you will see a very small icon/button in the upper right of the Panel. Click on it and select 'Print Production' in the menu dropdown. The printing Panel opens and you can select the preflight. The document open, select the "Embed" fonts in the list of 'Corrections PDF' and click 'Analysis and fix' button at the bottom right.

  • Epson Aculaser C 1100 printer does not print after that the text of the error 'install C Tnr basket' black and printer doenst photography black and white or grayscale pages

    Epson Aculaser C 1100 printer does not print after that the text of the error 'install C Tnr basket' black and printer doenst photography black and white or grayscale pages

    the printer is not the shades of grey even print cartridge is not yet empty

    y at - it software for hauler color printing?

    Thanks for your comments

    Hello Nilsvolkel,

    Thanks for the reply.

    I'm sorry for the late reply.

    I appreciate your patience and time.

    Do not require any special software.

    However, you can use the steps in the following articles and check.
    Reference:
    http://eSupport.Epson-Europe.com/ViewArticle.aspx?LNG=fi-fi&kbid=328037&data=FCFfEfoyEiGLYDIUqzWyE0QE3127X87y&CL=1

    http://Windows.Microsoft.com/en-us/Windows/choosing-print-options#1TC=Windows-7

    Please keep us informed.

    Thank you

  • Editing the text in InDesign CS3

    I am trying to edit text in an older InDesign file.  When I try to edit the text, the text cursor changes places pointed outside delimiter to a round and I can't select or change the type.  What is the change in the appearance of the average slider and how to change the text?

    Thanks for any help you can give me.

    This could explain why the tool moves to type on a path. ID think that you want to add more text on the lines. If the file has been saved with the text you entered, you're sol save a version of type without a modifiable version is about criminal (and we will not go into why you should describe the text initially).

  • The pop-up box to define privacy choices is too small. Only half of the text is available. Unable to access the "EDIT" button to the right to save the settings.

    I can't change any settings that are shown in a popup box. The box is too small to contain the message and cannot be adjusted. I can make changes, but cannot save them. As a result, I am stuck with either save no history, or the history. My problem is to save the cookies but the problem is extensive. I am running Firefox 41.0 2 under Ubuntu LTS 14.04. This problem did not until the 41.x update. At that time, my settings in Firefox are YOU, and I had to reload all the preferences, (several times). Thunderbird doesn't seem to be affected.

    The text seems important enough in the screenshot.

    You have a size of upper text somewhere (Firefox or Linux settings)?

  • predefined text will not apply - it asks me to return, but after that the text is not performed?

    Hi, im a horrible time with text presets.

    I am trying to add a blur text evaporate pre-set to my text layers.

    I dragged and dropped the preset on the text layer, and it seemed that it was necessary to make it as if a change was applied-it. but after that rendered nothing happens to the test, no changes have actually been applied. no error message appears and I can't find an answer to this anywhere.

    any help would be greatly appreciated!

    Ive attached a screenshot of what it looks like. in the screenshot I've dragged him evaporate preset above the layer, that is why this article is not green up, but even after that I return however, the text has no effect as if nothing has been applied.

    preset problem.JPG

    Edit: ive found if I double click the preset, it sends the white words and I can't make it visible? I'm so confused.

    You might have added the preset to an incorrect point on the text layer?

    The preset adds keyframes for the text in the current-time indicator layer, animating the range selector in a band called "evaporate facilitator" to compensate for the value of the scale/opacity/blur

    Move keyframes to the start & end time desired can give you what you are looking for.

    I don't think that there is no color change in this preset.

  • Photoshop CS5.1 64 bit crash, usually after using the text tool.

    The problem started after I replaced my hard drive with an SSD and added an internal HARD drive, so I guess that it is linked to that.  When it crashes, Windows gives me the following message is displayed:

    Signature of the problem:

    Problem event name: APPCRASH

    Application name: Photoshop.exe

    Application version: 12.1.0.0

    Application timestamp: 4d90d339

    Fault Module name: Photoshop.exe

    Fault Module Version: 12.1.0.0

    Timestamp of Module error: 4d90d339

    Exception code: c0000005

    Exception offset: 0000000000da64f0

    OS version: 6.1.7601.2.1.0.256.48

    Locale ID: 1033

    Information additional 1:7549

    More information 2: 75499a39069f727082a97ff62ae69972

    3 more information: 069f

    Additional information 4: 069f4e7522beac631f124f1ea513a1b2

    I tried to update and roll back my graphics driver, I checked my swap file (because my SSD uses Samsung magician, and I found a few posts a few years ago which suggested that might be the problem), but I can't understand this.

    Other Production Premium CS5.5 programs seem to work perfectly, and only Photoshop is having issues.  I tried to reinstall (in which case a vital file has been damaged or missing).  Photoshop displays all errors of himself, he just died.

    Any help would be greatly appreciated!

    Well, I'll direct you to two links: troubleshooting fonts | CS6 2014 CC, CC, Photoshop, CS5

    CS4 crashes when you use the text tool

  • editing the text in the string does not change the distorted text!

    I have the text in a basic text box. I applied a string in base to give a higher arc. Okay, now I want to change the size of the text.

    I select the text and reduce the size of text in the character palette - nothing happens.

    I double click on text box that isolates the text, double click again to select the text, drag to select all the text, then reduce the size of the text in the character palette. the Red preview reduced but when I click, the distorted text is always the same size as before!

    I'm sure that just by clicking on the text and by reducing the size of the text (in the character palette) worked before...

    Try the object > envelope distort > edit content.

    The size can be changed by editing the envelope (the text is always dimensionnera to the size of the envelope.

  • Editing the text in Photoshop problem

    I have the tool of the title and the layer selected title, but when I click on the text that I want to edit, I continue to create a new layer and I am not able to change the text.  How can I avoid this?

    If you double-click the thumbnail of T in the layers panel, it will show the text for you.

  • Can someone help me? I'm trying to edit the text I used for menus, but it won't let me

    the text box in the Muse leaves me no xhange the wording of the menu option

    The text in the menus can only be changed directly if you have the type of menu set to manual, otherwise you will need to change the names of the pages themselves in the view plane.

    David

  • Editing the text in the pdf

    Am, change the text in a full color book large pdf file of 296 pages.  Each page has a mix of text and images-I can edit text on each page, but on some pages that the text edit tool won't let me select the text I want to change - as if it isn't there and is considered to be an image, despite the fact that is a separate text box - can not understand why I can easily edit text which is next , but not the text of a few centimetres more far overall. Am baffled by this.  Attached jpg to show WORLD SWORDS PRACTICE FILE 180.jpg layout of the book.

    It the tool select text does not work, then it is not text. You really do want to be change the text in a pdf file if it can be avoided at all. It's just a problem ticking. It's ALWAYS better to edit the original document and then regenerate the file. If there are customizations with the buttons and fields that you do not regenerate, so you can replace the old page of the PDF with the new page as a new pdf and avoid all the problems that come with editing text.

  • Editing the text in an image

    How can I edit text in an image without changing the font or colors?

    Hey there mike-tram!

    Well, if you do want to change the font or colors in your image, you can change the size and position of your text.

    This is a picture I have with a text layer. Right now, I don't like the direction or text size.

    First of all, I need to select the text layer. In your layers below Panel, select the text layer.

    Select the text tool in the toolbar below show.

    By highlighting the text of my text layer with my text tool, I can change the size of my text.

    In the toolbar above with the type tool selected, you can see a place to change the size, as shown below. I'll change the size from 150 to 72pts here.

    The size of the text below, is now smaller than 72pt.

    To change the posistion of your text, select the tool moving, as shown below.

    With the move tool, you click and drag where you want the text to be located. You see, below, that I moved it to the center of my image.

    I hope that answers questions you may have. Below I've included videos that show MORE options with the modification of the text.

    enjoy,

    Janelle

  • See the playback bar only after all the captions display?

    I'm trying to understand how I want my users to navigate, and thanks to the response of lilybiri on conditional actions, I am able to make the play bar jump up if users hit different buttons - thank you again.

    But here's what I don't know now.  I have another slide in which I want to have all the text and captions arrive on schedule (which follows the narration), but then not the pop play bar until all these were posted.

    In others, I understand the conditional action that will show the playback bar, but here I have nothing to attach a conditional action too.  I just want the PlayBar appears at the end of say 30 seconds, and let the user decide when they progress, but don't let them move forward before the entire displayed page.

    Note: The slide automatically suspended because I have a button that appears and allows them to view additional content, but I don't want that it is a mandatory button before seeing the play bar (if it is required, then I could use it as the action of condtional to shw the PlayBar)

    You need an event to trigger a tip action, and calendar is not an event.

    Why not to create another identical slide and have the playhead to move to this slide, after the first slide (with a chronology of 30secs) is over?

    Lilybiri

  • Editing the text in the scanned document (ROC)

    I am a newbie, and I tried my best to do it without asking for help, but could only get so far.

    I have a PDF file that are scanned pages of text in boxes. All I want to do is change some of the text. I am able to enable OCR so that the text is selectable and recognizable, but obviously not enough actually to change the text. In my view, a plug-in might help, but is not the first person I tried to work.

    In the end, I got a page made in opening the PDF file in Photoshop and covering the old text with a white box and the new text. It's NOT ideal! In addition, because it's nice and new, a clear text added with Photoshop, it stands a bit of the unpublished text which is a blur, because it's a scanned image.

    Free is always the best and I want to save money, but I can afford buying new software and plug-ins if I have to. Is it possible to do what I'm doing? If so, what version of Acrodbat do I need? If I need all of the extras, what should I expect?


    Thanks in advance.

    You must use the Touchup text tool, but do not expect great results.

  • Can edit the text in the swf file

    Does anyone know how to prevent the text to be changed once published?

    The only way it can be changed if the text fields are set to 'Enter' - change the static or
    Dynamic according to your needs.

    Chris Georgenes / mudbubble.com / keyframer.com / Adobe Community Expert

    vaultgal wrote:
    > Is - anyone know how to prevent the text to be changed once published?

Maybe you are looking for