How to get the track changes inserted / deleted text?

Hello

I have read the Adobe InDesign CS6 JavaScript Scripting Guide and wrote a JavaScript as below:

var myChanges = app.documents.everyItem().stories.everyItem().changes;
var myString = '';
for (var i=0; i<myChanges.length; i++) {
        var myChange = myChanges[i];
        myString += myChange.userName + '\t';
        myString += myChange.date + '\t';
        myString += myChange.changeType + '\n';
}
alert(myString);

My script can get the username, date and change the type.

But the guide does not cover on how we can get him insert / delete changes?

Thank you very much!

The lines I wrote above deleted content work.

Your problem is that not remove anything to show him because you started to follow the story of its creation.

If you first create a story and then start tracking it and add, remove etc. your will see the scripts to get also deleted ones.

Tags: InDesign

Similar Questions

  • How to get the page change event?

    Hello.

    I know that get changed event document as ISignalMgr-> GetServiceID of CResponder::Respond.

    But how to get the event page?  average of the event's page add, delete, etc...

    Thank you.

    Hi K159,.

    You can spy on the InDesign debug Test/Spy/SpyPreferences menu for the observer notifications. Can add or remove a page and to analyze the output of the spy.

    On the kDocBoss, there is an interface IPageList form you can get the number of pages.

    Markus

  • How to get the asset changed deployment event details

    Hello

    I created a deployment listener class to watch the changes to the file system of www, but the event does not provide any information about the assets that have been modified for the current deployment process.

    the type of the affected element and repositories concerned return null values.

    How to track the active details of file system of www changed using the deployment listener class.

    Thank you
    Jocelyne Meyer

    You must export an rmi to the BCC service that returns the modified files.
    Next to the agent, the auditor of deployment should call this rmi service and get the modified files.

    Here is the snippet of rmiservice at the end of the BCC.
    {getDeploymentData()}
    RepositoryView view is getDeploymentRepository () .getView ("repositoryMarker");.
    Qb = view.getQueryBuilder (generator) from query;
    QueryExpression expression = qb.createPropertyQueryExpression ("deploymentId");
    QueryExpression val = qb.createConstantQueryExpression (deploymentId);
    Query query = qb.createComparisonQuery (expression, val, QueryBuilder.EQUALS);

    RepositoryItem [] deploymentData = view.executeQuery (query);

    for (int i = 0; i)
    {
    String repositoryPath = (String) ((RepositoryItem) deploymentData.getPropertyValue ("deploymentData")) .getPropertyValue ("source");
    String itemDescName = (String) deploymentData [i] .getPropertyValue ("itemDescriptorName");
    String itemId = (String) deploymentData [i] .getPropertyValue ("itemId");
    Repository repository (Repository) = Nucleus.getGlobalNucleus () .resolveName (repositoryPath);
    String uri = "atgrep: /" + repository.getRepositoryName () + "/" + itemDescName + "/" + itemId;

    If (isLoggingDebug ())
    {
    logDebug ("uri =" + uri);
    }

    assetURIs.add (uri);
    } / / end of course of the items in the repository deploymentData
    } / / If deployment
    }

    Peace
    Shaik

  • How to get the firewall or Rassi deleted page

    I play canasta to yahoo, but it leaves me in a room because its says that I have either a firewall or a bland page, how to fixs this problem

    Hello

    What antivirus do you use?

    Method 1:

    Disable the antivirus software and check. Check out the link:

    Enable or disable Windows Firewall

    http://Windows.Microsoft.com/en-us/Windows-Vista/turn-Windows-Firewall-on-or-off

    Method 2:

    Try to optimize internet Explorer and check to see if it helps. See the following article to do the same thing:
    How to optimize Internet Explorer
    http://support.Microsoft.com/kb/936213/no

    Warning: Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.

    Method 3:

    Check out the link and follow the steps.

    The problems of games online using Internet Explorer
    http://support.Microsoft.com/kb/2528246

  • How to get the CR/LF in copied text only after each paragraph?

    I am currently getting CR/LF after each line.

    Have you tried to export the file in text or doc format. That could give him what you want, especially if you keep the flow of the text.

  • How to get the legend of bubble label text in MapView when we type?

    I added pins on MapView. Each pin card have a place name. Only touch the spindle, one sees a bubble. In this bubble, place name is provided. We provide the following C++ code name:

    NewDrop geolocation * = new GeoLocation();

    newDrop-> setName ("India");

    I want this place name, when I click on the legend label.

    Can someone help?

    Thanks corine.

    I tried the method you suggested.

    But I got a simple solution for this case. I added the following code in C++:

    NewDrop geolocation * = new GeoLocation();

    QString pinId = 'India ';

    newDrop-> setId (pinId);

    And in QML, I used 'focusedId', for that the bubble tapped s ID. This works.

  • How to 'get the names of the tracks"in iTunes 12?

    Previous versions had 'get' track names in the menu dropdown.

    12.5 iTunes does NOT seem to have this option.

    So what can I do to use the internet and the Gracenote database?

    I found this page - but it doesn't seem to be any help, I have nowhere in my iTunes App can find the 'options' click symbol. (of course, this page may NOT be about this 12.5)

    <iTunes for Mac: If you do not see the song information>

    iTunes for Mac: If you do not see the song information

    grateful for any comments.

    w

    Hello

    As with many things in the new version of iTunes, changed the way to get information. For example, when you insert a cd, the upper right corner shows CD Info, CD Import, a new icon that looks like a gear wheel! and the eject button. Click the gear and it shows get track names etc.

    If you have already imported the CD, you can retrieve the info by clicking on file > library > get the track names.

    Jim

  • How to get the event when we change our simcard in BB device

    Hi all

    Please, someone tell how to get the event or any listener method that can automatically called when we change our SIM card device.

    Thanks in advance,

    TEJ

    Hi Tej,

    I came across some post, which may be useful for you

    http://supportforums.BlackBerry.com/T5/Java-development/is-there-a-way-to-get-the-mobile-or-phone-nu...

    http://supportforums.BlackBerry.com/T5/Java-development/is-SIM-ID-really-exist/m-p/54407#M5954

  • How can I remove the underline of the text added to the track changes

    We have a lot of content which includes underscores and when we use the added track text edit function text is green and underlined. How can I change the properties of the text added to be not underlined?

    From FM11, you can specify a custom color to use for the track changes, but styles (underline, strikethrough) are still wired.

    Even if you try to make changes to the text edit rack conditions in a MIF file, they will be crushed as the MIF is interpreted then opened by FM.

    Please use the new form of Bugs & features submit an enhancement request: https://bugbase.adobe.com/index.cfm

  • How to get the changes during the process of replicat ABENDED

    Hello
    I'm working on Oracle GG two-way DML replication. I m stuck in one place.

    My target replicat process has been ADDED due to the error:-ORA-01403: no data found. I restarted my process replicat again by runing the below command

    GGSCI (db1) 30 > replicat rep2 alter now
    GGSCI (db1) 30 > start replicat rep2

    After the reboot, the process to replicate that I do not see the changes on the target server which I had applied on the source for replicat target server was ABENED.
    My doubt is.

    1. is my command is correct for start replicat ABENDEND process?
    2. how to get the changes to the target server that applied to source for replication targer ABNDED?
    3. how to avoid the process of ABENDED replicat on the production server?
    4. how to follow the process in the production server ADDED?

    Please HELP:)

    Published by: Sabrina on August 29, 2012 03:32

    info from the GGSCI prompt will tell you the current file path and RBA.

    With this information, you can go in logdump and follow these steps:

    open 
    detail data on
    pos 
    n (next)
    

    It will appear the RBA # the next transaction. Then you return to the GGSCI prompt and do:

    ALTER EXTRBA
    BEGINNING

    With that he will take this next RBA from until you reach the following 1403

    Greetings,
    NACEUR

    PD: in the case where your question is answered please remember to mark your answers questions in order to clean up the forum and help others when they are looking for solutions to their problems.

  • How to get the cursor to change when rolled on an object?

    does anyone know how to get the cursor to change when rolled onto an object. BTW, I have several objects to apply it.

    Select your object's buttonMode:

    yourobject.buttonMode = true;

  • How to get the text have the same effect as the video?

    Hello

    For the first time post here, but I wonder how to get the text of the titles have the same effect as the video behind her.

    For my video, I use 'bad tv' and other effects such as Gaussian that obviously changes the appearance of video, creating the look of VHS. However, I then inserted text via the title, but it normally appears. How can I make this text have the same effects as the video behind it?

    A friend told me I might need to add text to the video first, then do the effects, I have not tried, but wonder if there is an easier way, as this would require me to restart.

    EDIT: That's what I'm looking for. https://youtu.be/7_2PHQI89dI?t=24s The text has the same effect as the video.

    Thank you

    One way is to create a clip made up based on the title and the original clip. Then apply the effect.

    Another way is to use an adjustment layer.

    Good luck.

    Russ

  • How to get the icons to display correctly in the Finder?

    At the time of the "classic" Mac OS, if the icons are not correctly display in the Finder, we could 'rebuild the desktop file' to correct the problem. I've recently updated to Yosemite, and most things work well, but for some reason, most of the files in the Finder .webloc now show as blank icons (but not all; a few show the correct icon). There is no model, I can see: some very old .webloc files now show a white icon (where I know that their icons used to be correct), while the most recent show the icon of correct - although I just created four (by dragging the URL of the Safari, the usual method) which are all empty. Sometimes they appear with the older icon, with the symbol @ (although those who seem to have changed vacuum after running and restart maintenance). I tried from an external disk, repair permissions and repair the file system, as well as cleaning with the utility of Maintenance (which clears the web browser and other caches), nothing works. Does anyone know how to get the computer to display these icons correctly?

    May be a corrupt .plist.

    Make a backup, preferably 2 backups on 2 separate drives.

    Go to Finder and select your user folder. With this Finder window as the windshield, select Finder/display/display options for presenting or order - J.  When the display options opens, check "show the library folder. This should make your visible user library folder in your user folder.  Select the library. Then go to Preferences/com.apple.finder.plist and com.apple.desktop.plist.  Move the .plists on your desktop.

    Relaunch the Finder by restarting the computer and test. If it works fine, delete the plists from the desktop.

    If the same, return the .plists to where you obtained since, by crushing the latest.

    Thanks to leonie for certain information contained in this.

  • How to get the element selected listfield and goto next page?

    Assalaamualikum

    I try parsing the XML from a url and show in listfield.

    problem:

    How to get the selected item and passing the variable and than goto next page?

    my code:

    package parsepack;

    import java.io.IOException;
    import java.io.InputStream;
    import java.util.Vector;

    Import javax.microedition.io.Connector;
    Import javax.microedition.io.StreamConnection;

    Import net.rim.device.api.system.Bitmap;
    Import net.rim.device.api.system.Display;
    Import net.rim.device.api.ui.DrawStyle;
    Import net.rim.device.api.ui.Field;
    Import net.rim.device.api.ui.FieldChangeListener;
    Import net.rim.device.api.ui.Graphics;
    Import net.rim.device.api.ui.Manager;
    Import net.rim.device.api.ui.UiApplication;
    Import net.rim.device.api.ui.component.ListField;
    Import net.rim.device.api.ui.component.ListFieldCallback;
    Import net.rim.device.api.ui.container.MainScreen;
    Import net.rim.device.api.ui.container.VerticalFieldManager;
    Import net.rim.device.api.xml.parsers.DocumentBuilder;
    Import net.rim.device.api.xml.parsers.DocumentBuilderFactory;

    to import org.W3C.DOM.document;
    Import org.w3c.dom.Node;
    Import org.w3c.dom.NodeList;

    extends xmlparsing public class UiApplication implements ListFieldCallback, FieldChangeListener
    {

    Public Shared Sub main (String [] args)
    {
    xmlparsing app = new xmlparsing();
    app.enterEventDispatcher ();
    }

    public long mycolor;
    Connection _connectionthread;
    private static ListField _list;
    private static Vector listElements is new Vector();.
    public display display = new MainScreen();
    MainManager VerticalFieldManager;
    VerticalFieldManager subManager;

    public xmlparsing()
    {
    Super();
    pushScreen (screen);

    final Bitmap Imagearriereplan = Bitmap.getBitmapResource ("blackbackground.png");

    mainManager = new VerticalFieldManager(Manager.NO_VERTICAL_SCROLL |) Manager.NO_VERTICAL_SCROLLBAR)
    {

    public void paint (Graphics graphics)
    {
    graphics.drawBitmap (0, 0, Display.getWidth (), Display.getHeight (), Imagearriereplan, 0, 0);

    Super.Paint (Graphics);
    }

    };

    subManager = new VerticalFieldManager(Manager.VERTICAL_SCROLL |) Manager.VERTICAL_SCROLLBAR)
    {
    protected void sublayout (int maxWidth, maxHeight int)
    {
    int displayWidth = Display.getWidth ();
    int displayHeight = Display.getHeight ();

    Super.sublayout (displayWidth, displayHeight);
    setExtent (displayWidth, displayHeight);
    }
    };

    Screen.Add (mainManager);

    _list = new ListField()

    {

    public void paint (Graphics graphics)

    {
    graphics.setColor ((int) mycolor);
    Super.Paint (Graphics);

    }

    };
    myColor = 0x00FFFFFF;
    _list. Invalidate();
    _list.setEmptyString ("* only supplies not available *", DrawStyle.HCENTER "");
    _list.setRowHeight (50);
    _list.setCallback (this);
    mainManager.add (subManager);
    listElements.removeAllElements ();
    _connectionthread = New Connection();
    _connectionthread. Start();
    }

    protected boolean navigationClick (int status, int time)
    {
    Try
    {
    Here, go to another screen if you need.

    }
    catch (System.Exception e)
    {
    System.out.println ("Exception:-: navigationClick()" + try ());
    }
    Returns true;
    }

    private class login extends thread
    {
    Public connection()
    {
    Super();
    }

    public void run() {}
    Doc document;
    StreamConnection conn = null;
    InputStream is = null;
    try {}

    Conn = Connector.open (StreamConnection) ("http://ec2-54-248-241-248.ap-northeast-1.compute.amazonaws.com/koperasi-akr-trial/cgi-bin/gw-pinjama...

    DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance ();
    docBuilderFactory.setIgnoringElementContentWhitespace (true);
    docBuilderFactory.setCoalescing (true);
    DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder ();
    docBuilder.isValidating ();
    is = conn.openInputStream ();
    doc = docBuilder.parse (is);
    doc.getDocumentElement () .normalize ();
    List of NodeList = doc.getElementsByTagName ("ID");
    for (int i = 0; i)< list.getlength();="" i++)="">
    Node node = list.item (i) .getFirstChild ();
    listElements.addElement (textNode.getNodeValue ());
    }
    } catch (Exception e) {}
    System.out.println (try ());
    } {Finally
    If (is! = null) {}
    try {is.close ();
    } catch (IOException ignored) {}
    } If (conn! = null) {}
    Try {conn.close () ;}
    catch (IOException ignored) {}
    }} UiApplication.getUiApplication () .invokeLater (new Runnable() {}
    public void run() {}
    _list. SetSize (listElements.Size ());
    subManager.add (_list);
    Screen.Invalidate ();
    }
    });
    }

    }

    ' public void drawListRow (list ListField, Graphics g, int index, int y, int w)
    {
    Your string = (String) listElements.elementAt (index);
    int yPos = 0 + y;
    g.drawLine (0, yPos, w, yPos);
    g.drawText (, 5, 15 + y, 0, w);
    }

    public {get {Object (ListField list, int index)
    {
    Return listElements.elementAt (index);
    }
    public int indexOfList (String prefix, ListField list, int, string)
    {
    Return listElements.indexOf (prefix, string);
    }
    public int getPreferredWidth (ListField list)
    {
    Return Display.getWidth ();
    }
    public final void insert (String toInsert, int index) {}
    listElements.addElement (toInsert);
    }

    ' Public Sub fieldChanged (field field, int context) {}

    }
    }

    Thank you.

    I told you that replace the navigationclick() method where initialize you your listfield

    as I think that changing your code and then answer me

    _list = new ListField()
    {
    protected boolean navigationClick(int status, int time)
    {
      Dialog.inform("hi");
      return true;
    }
    
    public void paint(Graphics graphics)
    {
    graphics.setColor((int) mycolor);
    super.paint(graphics);
    }
    };
    
  • How to get the part of string before and after a character

    Hi all

    How to get the string before and after the comma character)

    Ex: The string contains the value John Kennedy

    I need the output as first stirng - John

    Second stirng - Kennedy

    Create table names (fullname varchar2 (20));

    insert into values of names ("John, Kennedy");

    insert into values of names ("papa ibra, Shan");

    insert into values of names ('Don Bosco'),

    Select * from names;

    Expected results

    FullName firstname lastname

    John, Kennedy John Kennedy

    Nicolas, Nicolas Shan Shan

    Don Bosco Don Bosco

    Please let me know how to proceed

    Thank you

    Hello

    This proves what I said before, on 0 and several commas commas.

    If we add these 3 rows to the sample data you posted:

    insert into names (fullname) values ("tou").

    insert into names (fullname) values (' David, Lloyd, George ");

    insert into names (fullname) values ('J, R, R, Tolkien");

    then the query I posted earlier produced these results:

    FULLNAME FIRSTNAME LASTNAME

    -------------------- -------------------- --------------------

    John, Kennedy John Kennedy

    Nicolas, Nicolas Shan Shan

    Don Bosco Don Bosco

    TOU tou

    David Lloyd, George David Lloyd, George

    J, R, R, Tolkien J R, R, Tolkien

    If you prefer to get these results:

    FULLNAME FIRSTNAME LASTNAME

    -------------------- -------------------- --------------------

    John, Kennedy John Kennedy

    Nicolas, Nicolas Shan Shan

    Don Bosco Don Bosco

    TOU tou

    David Lloyd, George David, Lloyd George

    J, R, R, J, R, R Tolkien Tolkien

    then you just change line 1:

    WITH got_commapos AS

    (

    SELECT FullName

    , INSTR (fullname, ','-1) AS commapos-* CHANGED *.

    Names

    )

    SELECT FullName

    , SUBSTR (fullname, commapos 1, -1) AS a first name

    SUBSTR (fullname, commapos + 1) in the FORM name

    OF got_commapos

    ;

Maybe you are looking for