Is it possible to find an xmlelement inside a specified text frame or in specified page?

Hi All
Is it possible to find an xmlelement inside a specified text frame or in a specified page?
Regards,
Chinna

Try this (not tested...)
app.findGrepPreferences = app.changeGrepPreferences = null;   
app.findGrepPreferences.findWhat = "\\d+|\\w+";   
found = app.selection[0].findGrep (false);  
for (j = 0; j < found.length; j++)  
    if(found[j].texts[0].associatedXMLElements[0].markupTag.name == "xref")
        found[j].texts[0].associatedXMLElements[0].select();
Vandy

Similar Messages

  • Is it possible to select an anchored object in a text frame in InDesign in a script?

    I would like to know if it is possible to write a script to select an anchored object in a text frame. All the scripts I have found so far do not work on anchored object.

    Check out this thread.

  • I inadvertently pressed CTRL+ another key (possibly V or B or N) and the text size of my bookmarked page was significantly reduced in size. I can't read it. How do I re-set the text size?

    I mistakenly pressed CTRL + another key (possibly V or B or N or whatever), when I was reading my e-mail. The text size shrank to a size that is useless to me, but I cannot seem to get the text size re-set to normal. Indeed all of the formatting on the page has been reduced (symbols, instructions, frames etc). Existing Firefox and returning to the bookmarked page makes no difference. How do I re-set the system?

    Hi,
    Please try '''Ctrl''' + '''0''' (zero). Alternatively '''View''' ('''Alt''' + '''V''') > '''Zoom''' > '''Reset'''.
    [https://support.mozilla.org/en-US/kb/how-do-i-use-zoom?redirectlocale=en-US&redirectslug=Page+Zoom Page Zoom]
    [https://support.mozilla.com/en-US/kb/Keyboard%20shortcuts Keyboard Shortcuts]

  • Finding the matrix info on a text frame?

    I wanted to understand the matrix values and methods so I could make a script to select or not select textframes that are angled.
    Can anyone explain this matrix stuff to me?
    This script is the only example I have found so far.
    if ( app.documents.length > 0 ) {
    var moveMatrix = app.getIdentityMatrix( 0.5, 1.5 );
    var totalMatrix = concatenateRotationMatrix( moveMatrix, 10 );
    var doc = app.activeDocument.activeLayer;
    for ( i = 0; i < doc.pageItems.length; i++ ) {
    doc.pageItems[i].transform( totalMatrix );
    Im thinking I need to use getRotationMatrix([angle])
    any help would be greatly appreciated,
    Duane

    Awesome Carlos!
    This deselects all angle text in my selection.
        Deselects all angle text from selection
    function deselectAllAngleTextFromSelection() {
        var mydoc = app.activeDocument;
        var mytext = idoc.textFrames;
            for (i =0; i < mytext.length; i++) {
                    var mytextFrames = mydoc.textFrames[i];
                    var theMatrix = mytextFrames.matrix;
                    $.writeln(theMatrix.mValueA+"\r"+theMatrix.mValueB+"\r"+theMatrix.mValueC+"\r"+theMatrix. mValueD+"\r"+theMatrix.mValueTX+"\r"+theMatrix.mValueTY);
                        if (theMatrix.mValueA !=1 || theMatrix.mValueB !=0) {
                            mytextFrames.selected = false;
    deselectAllAngleTextFromSelection();
    Thanks much,
    Duane

  • Tables inside overset text frames

    Hi everybody!
    Im trying to write a script to set the width of all tables in a document equal to its parent text frame, I was succesful, but
    the tables that are overflowed do not get resized. I have only come up with a way to find if there is an overflowed text frame
    but not to find and overflowed text frame contents. PLS HELP!
    heres my code:
    //resizes tables
    var myTextFrames = app.activeDocument.textFrames.everyItem();
    var myTables = myTextFrames.tables.everyItem().getElements();
    for (var i = 0; i < myTables.length; i++){
             var myTextFrame =  myTables[i].parent;
                        var myWidth = myTextFrame.visibleBounds[3] - myTextFrame.visibleBounds[1];
                myTables[i].width = myWidth;
    //finds a textframe with overset text
    var myOverset = app.activeDocument.textFrames.everyItem().getElements();
                    for(var x = 0; x < myOverset.length; x++){
                        if(myOverset[x].overflows == true){   
                        alert("There is overset text")

    @Kai – cool. Maybe just a little thing:
    You suppose that the first text frame of a given story has the same width as the one with the overset (holding a table in the overflow).
    So, if we have the following situation:
    A table in the overflow will get too wide after running your script:
    Instead of the first text frame in the story we could address the last one directly with:
    else if ( container.constructor.name == "Story" ) {
        var myTextFrame = container.textContainers[0].endTextFrame;
    And the result will be:
    The property endTextFrame is in the class of TextFrame.
    We could also have written:
    else if ( container.constructor.name == "Story" ) {
        var myTextFrame = container.textContainers[container.textContainers.length-1];
    Uwe

  • Is it possible to find and Replace a string inside a textfile using JSP?

    FileInputStream fs = new FileInputStream("/opt/Abhishek/software/tomcat/webapps/AMS/listpass");
    DataInputStream in1 = new DataInputStream(fs);
    while (in1.available() !=0)
    String str1=in1.readLine();
    StringTokenizer st1 = new StringTokenizer(str1);
    String node=st1.nextToken();
    if (node.equals(sports))
    String pass=st1.nextToken();
    out.println ("<b>"+sports[i]+" <b>");
    out.println("**Your Required Password**");
    out.println(pass);
    out.println("<br></br>");
    %>
    Hi ,
    I have a text file (named listpass in the above code) inside tomcat-webapps folder containing a node name and its password.You could see the path of the text file at the starting line of the code.The Scene behind the program is once the particular node is clicked the password is retreived for the user against the particular node.What i would need is to change the password in the text file once it is retreived. So i would need to find the password that is retreived recently and change that one with a randomnly generated new password in the text file.
    So can i do this?Is it possible to search for the string in the text file and replace that with a new one using JSP.For your note i am running all my HTML amd JSP inside the same folder where i have the text file in which the string has to be replaced .
    Could anyone give your comments on this please?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Nasty in so many ways.
    First off you shouldn't be doing stuff like this in a JSP. JSPs should just build HTML, use a Servlet and then pass data to a JSP for formatting.
    Web applications are multi-threaded, so you have to consider what happens if several of these transactions come in at the same time, each trying to change the same data file.
    It's not practical to amend text files in place, generally you have to create a new version of the file for each change because if the size of a password changes the subsequent bytes of the file would all need moving.
    Use a database. Databases are designed to deal with these issues and there are perfectly good free ones around like Derby, MySQL and H2.

  • Is it possible to find out if a certain type of document is available inside a document-set by the help of workflows?

    Is it possible to find out if a certain type of document is available inside a document-set by the help of workflows?

    Hi,
    According to your post, my understanding is that you wanted to find out if a certain type of document is available inside a document-set.
    Per my knowleadge, there is no out of the box way to accomplish this with SharePoint Designer Workflow.
    To find the content type inside a document-set, there are two methods:
    First, open a document set, click “New Document” option, then you can find the available content type in the document set.
    Second, open the document set content type, open Document Set Settings Page, then you can see the available content type.
    More information:
    What is Document Sets in SharePoint 2010?
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Is-it possible to insert a copyright inside a photo with adobe photoshop elements 10?

    Is-it possible to insert a copyright inside a photo with adobe photoshop elements 10 to protect my rihts?

    Thank for this precious information.
    Date: Sun, 15 Jan 2012 11:22:31 -0700
    From: [email protected]
    To: [email protected]
    Subject: is-it possible to insert a copyright inside a photo with adobe photoshop elements 10?
    Re: is-it possible to insert a copyright inside a photo with adobe photoshop elements 10? created by hatstead in Photoshop Elements - View the full discussion
    Yes, it is.
    The easiest way for me is access the custom shape tool,  and within that the Symbols library. You will find the copy right sign. Just drag it out. It will be on its own layer. Enter the rest of the info with the Type tool.
    The symbol can also be found in the character map on a Windows system.
    If you have multiple photos that you wish to mark, it is very efficient to make a copyright brush and apply  with a  click of the mouse.
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4141819#4141819
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4141819#4141819. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Photoshop Elements by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How to find a string inside Excel table

    Hi,
    I am trying to find a string inside Excel table, and it does not work. Please see attached figure. I use the find Invoke Node and do not get anthing.
    Please help
    Attachments:
    find_excel.JPG ‏21 KB

    See attached files.
    Thanks,
    David
    Attachments:
    Excel_table.xls ‏15 KB
    Read_XL.vi ‏42 KB

  • Is it possible to find a version of pages to install on 2007 mac mini running lion?

    Can't install the latest system on my mac mini, it's too old.
    Want to install pages to work with files a friend is sending me.
    The app store only shows the current version of pages which requires the current system.
    Is it possible to find an old version of pages to install to run on 10.7.5 ?
    or better yet on 10.6.8? (on which I'm stuck because quicken stuck there)
    Thank you.

    I cannot answer your Pages question, but...
    What type of file is your friend sending you?
    FYI: Quicken 2007 for Macs (Snow Leopard, Lion, Mt. Lion and Mavericks) is available for only $15 download directly from Intuit:
    http://quicken.intuit.com/personal-finance-software/quicken-2007-osx-lion.jsp
    Also, if/when you upgrade, be sure to partition your hard drive or add an external drive and install Lion, Mt. Lion or Mavericks there!
    Keep your Snow Leopard partition and DO NOT install upgrade over it, as the upgrade will destroy the Snow Leopard environment.

  • Using column value is it possible to find the table name in the database?

    Hi all,
    using column value is it possible to find the table name in the database?
    guys i need the table value
    Note:
    oracle-9i
    for example:
    i don't know NIC(column value) in which table in the database.
    Thank you,
    with regards,
    JP.
    Edited by: Guest on Feb 27, 2012 5:42 AM

    Hi,
    As far as I understand what you are asking for I would suggest 4 data dictionaries that will help you to know the table name from the column names
    1. USER_TAB_COLS
    2. ALL_TAB_COLS
    3. DBA_TAB_COLS
    4. COLS
    These can give you detail information about the columns and respective tables at user, schema, dba level. Further information on the table can be found by querying ALL_OBJECTS table giving table_name as Object_name, or you can join the data dictionaries too.
    To know about various data dictionaries avalible in Oracle please query select * from cat;
    Let us know if you need further assistance.
    Twinkle

  • STOLEN IPHONE - IS IT POSSIBLE TO FIND IT?

    Is it possible to find my stolen iPhone through the imie code? using iphone makes sense when you have an Apple ID. Is it possible to find my iPhone through IMEI if someone restored the pjone and connected it to a new Apple ID? That would mean that one IMEI is in two Apple Accounts. Is it possible to find out that?
    Second question - I didn't have Find My Phone software on the stolen iPhone, but installed it on another (old one i have) and it showed both iphones the old one i am using now and the stolen one. The fact that the stolen device appears in my account means that the phone has not been restored or it could have been restored and now works in another account?
    Thanks for information in advance.

    Dear AnaMusic,
    I read the infomration in the link you sent me, but there is no information about the option 'report a stolen device'. I can't see any option like that one. I can see only that I can look for it through 'Find My iPhone' application, which, I heard, is useless if the telephone has been restored.
    Where can I report a stolen iphone?
    regards,
    Martin

  • Is it possible to add a string inside a textbox with a value of another textbox for Acrobat Forms?

    Is it possible to add a string inside a textbox with a value of another textbox?
    ex.
    Textbox1 = Happy
    Textbox2 = Sad
    Textbox3 = "I am Happy therefore I am not Sad"
    "I am (value of textbox1) therefore I am not ( value of textbox2)"

    Use this code as the custom calculation code of Textbox3:
    event.value = "I am " + getField("textbox1").value + " therefore I am not " + getField("textbox2").value;
    Notice that the field names are case-sensitive.

  • Is it possible to find out the names of the various objects (jpegs, pdf's, etc) in a keynote presentation?

    I have to re do a keynote presentation for powerpoint -- the export feature won't work on the pc -- it simply says that it wasn't possible to display some of the text and objects because they had become corrupted, and were replaced with blank slides.  I was wondering if it's possible to find out the names of the objects used in the presentation.  That way I could save them to a folder and just paste them in to the PPT version on the PC.  I know they have to be somewhere on the Mac that the presentation was made on, so is it also possible to find out where they would be?
    I tried right clicking on the objects in the slide, but there was no 'get info' option, like there is in a finder window.  Please help if you can.
    Chris

    There are a few options for you here. In the Inspector>Metrics Tab, when you click on the picture, it will display the name. Then you can use the find feature of the Finder to locate the picture. If you have Keynote set to save files as Packages, you can right click the file in the Finder (or control click) and then select Show Package Content. This will show you all the files that make up your Keynote and you can copy the pictures out of there into a new folder. Finally, if you can't find them any other way, you can select and copy the picture in Keynote, then open Preview and command-n (or File Menu>New from Clipboard) and then save the file to where ever you want so you can find it.

  • Is it possible to find the Equipment for given PP work center?

    Hello PM Masters,
    Is it possible to find the Equipment for given PP work center?
    Please tell me which table will lend me the EQUNR when I have the PP work center (ARBPL).
    Thank you.

    Yes,
    Provided you maintain this value in Equipment master Location tab like this.
    And then query by this field in IH08
    Jogeswara Rao K

Maybe you are looking for

  • Re: Help needed in passing values from workflow to Approve Forms

    Dear Experts, how do I pass values from a workflow to a step (Form) - approve form? I am using a customized table structure as my data source (FORMCONTAINERELEMENT) but am stuck on how to access the data when i get to to the screen painter's flow log

  • External sample clock with pulse width measurement

    Dear all, I am using a NI 6220 board (programming with ANSI C) and would like to perform a "single pulse-width measurement" using an external gate signal and an external signal as source. Using the  "DAQmxCreateCIPulseWidthChan" command the program a

  • Help with changing Flash Website!

    Hi, I have a Flash template: And my design in Photoshop: I want make my design in flash, so that i change the colors and everything without writing the script. Can someone tell me how to do this? Here is the template: http://jump.fm/INACQ Thanks, LTK

  • Out of iTunes Authorizations

    I am a long time user of iTunes. Over the years I have upgraded my computer, BIOS, hard drives, etc. Each time iTunes treats these updates as a "new computer." I have just used up my last computer authorization and no longer have access to the old on

  • What syntax should be used in jspx for img src= c:out value="${}" /

    Dear Friend If I query in a database and the database return a url and with this url  I like to generate an image in jspx. *The syntax work ok with the jsp <img src=<c:out value="${abc.xyz}" />* *But with jspx it shows syntax error of < What you peop