determine the name of current selection XMLTags

Dear Scripting Guys,

I would like to find a way to alert the name of XMLTags of the currently selected text or the text where my cursor is currently.

Something like this works:

Alert (App.activeDocument.xmlTags.Item (0).) (Name)

The problem is, that the above example is static and shows only the name of item (0).

How can I fix?

Also, where can I watch the syntax of XML tags? Is there a literature or an overview of the syntax?

Thanks for your help,

TYPO

Hi Typo,

Try the below code on CS4

Alert(App.Selection[0].associatedXMLElements[0].markupTag.Name)

You can use the Indesign Jongware object reference. Check below link
Shonky

Tags: InDesign

Similar Questions

  • Determine the name of the model of service tag

    I just bought a used laptop in VAIO, but the model name label is worn to the point where some characters are unreadable. Is it possible to determine the name of the model ther service tag or serial number? Thank you.

    Hello.

    The Sony eSupport Section of the Support will help you find the model number of Sony VAIO laptop

    If my post answered your question, please click "accept as a Solution.

  • How to determine the name of the Cluster?

    Version of the grid: 11.2.0.3 on Solaris 10

    When we start to install the grid Infrastructure, we specify a Cluster name.

    Question1.
    How can I determine the name of the cluster to a RAC 11.2 Cluster? We maintain an inventory of DB. For each cluster, we specify the name of the Cluster. This is why we are asking the name of the cluster.


    Question2.
    The name of the cluster is without functional importance. Right? I don't remember using the Cluster name in any order (srvctl, crsctl,...)

    To determine the name of the cluster,

    [oracle@iron1 ~]$ olsnodes -c
    ironcluster
    [oracle@iron1 ~]$
    

    I wouldn't say it's very technical significance, even if it is used as a default value in a few other names.
    --
    John Watson
    Oracle Certified Master s/n
    http://skillbuilders.com

  • Using JavaScript to determine the name of the file a form

    We have a lot of forms, and in many cases, our custom JavaScript if applies to all forms in a given folder. We want to determine the name of the file of the form so that we do not have to list each shape in a giant 'IF' statement.

    Has anyone found how to determine the folder of a form using JavaScript?

    Thank you!
    -Jake

    Hey Jake,

    Is good enough record id, it should not change anyway.

    Alert (externalFormId);

    will provide the folder under that accessed the form.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Determine the name of the Auditors

    DB version: 10.2.0.1.0, 11.1.0.6.0

    If there are two listeners running on the same machine. How can I determine the name of each auditor?

    Hello

    I guess that you are on a Unix platform...

    try: -.
    #ps - ef | grep tns

    the answer must contain 1 or more entry similat to this: -.

    Oracle 13938 1 0 Jan21? 00:10:16 /opt/oracle/11.1.0/bin/tnslsnr EARPHONE-inherit

    This shows the ORACLE_HOME for the listener and name

    / Richard

  • Determine the name of a Javascript Button icon file?


    Hello

    Some time before, I created some buttons in JavaScript and then specified the names of files for their icons.  Now, when I go back to the properties of the button for these buttons dialog box, specifically the Options tab, it doesn't tell me the names of the files that I specified originally for the icons.  The 'Label' field is empty.  It would be really useful if the ' Label: ' field would specify, by default, the file name of the CURRENT icon associated with the button I look.

    The button Properties dialog box is displayed a very small image of the icon in the "icon:" box, but this image is not enough for me to understand the name of the original file of the icon.

    If I click on "select icon...". ", it seems to show the last file icon I selected (which is of no help), not the file name of the icon which I am looking at properties.

    Is there some way look at the properties of a button and determine what the icon file was associated with the key?  Once again, the small picture in the "icon:" box is of no help.

    Thanks for your help with this issue.


    Dave

    The file name is not stored in the PDF file, only the icon.

  • VI to determine the name of the project

    For a real-time application, I wanted to determine, at runtime, the name of the project in which the VI has been "content".  I wanted to get the name of the project (even) under four different conditions:

    • on the host, in development mode
    • on the host, in Run-Time mode (i.e. after being built as an executable)
    • on the goal of RT, development mode
    • on the aim of RT, in run mode.

    It is not so easy.  I figured out how to make the first two (use the name property of the active project development and use the next last folder directory of the Application in Run-Time mode mode), but I'm having trouble to get this information to get the target RT code.  Has anyone tried this before?  Did you?  Advice (or even downright Solutions)?

    Bob Schor

    Well, I figured out, but it's not pretty.  In the previous post, I explained why I wanted to do - here I will explain how I did this.

    There are three main modes, under which Applications can run: development mode (when you are programming in LabVIEW and press the button "Run"), Run Time System (an executable on a PC) and Embedded (code that runs on a target in real time, in the form of executable file or development).  Of these, only one mode of development gives you access live (via the Application, the active project property) in the name of the project file.  My goal is to have the user interface and the RT 'chunks' of the project in real time have access on behalf of the project, the system I'll create will use same code on two subsystems, meaning that it will run on the PC at least once in the mode of development .

    The key step is to create a 'constant VI', I'll call CONST name of the project, which consists of a single indicator of string, name of the project, which "held" the name of the project.  I initially thought to use a Global Variable, but there is a technical problem with that I will mention later.  I didn't use CONST name of the project directly, but, instead, use a 'Get the project name' VI that has, for its single release, the name of the project.

    This VI, when it runs, determines the type of request under which it is running.  If it is something other than the Mode of development, he calls CONST project name and returns its value.  If this is the Mode of development, it gets the name of the project, he returned, but just before leaving, he arranges to be updated programmatically CONST project name when it is called in the future, it will return the name of the project (update).  [Then why not simply initialize CONST project name?  I'm looking for a "generic" solution that will always return the correct value, even if I move to another project and don't remember about the change and change - all I have to do to make it work is to run once in the mode of development.  Who has ever developing code without testing before making the executable?].

    I wrote a VI gave the name of project Save, which does the following: he calls set the timer on CONST project name to define the name of the new project (this works even if we put an indicator), calls to use current default to make the new value "stick" and called "Instrument to save" to save the changes.  The problem is that CONST project name cannot be "running" in the State to use current default work without raising an error.  If the name of the Save project is simply called as a Subvi to get a project name, it will be in the State of operation as it is used in the case of non-development mode to get a project name.  The solution to this witch hunt is to use the asynchronous call with-and-Forget 'spawn' name of the Save project.  Finally, we modify register project name so that it starts with a loop "wait", examinging the State of execution of CONST name project and waiting for it to exit the executing State, indicating that it is prudent to make the change.

    Phew!  But it works!  Oddly enough, when I tried this using a Global Variable instead of my Constant VI, I kept getting errors during execution are currently lacking, but despite the mistakes, the code seemed to run correctly.  I found an article (written for LabVIEW 5!) explaining that it was expected as Globals behavior were always in the State of operation.  Actually, I just realized that I had not tried with the call-and-Forget asynchronous schema, then perhaps a decade later, LabVIEW will allow me to do this using a Global without raising an error...

    BS

  • Determine the name of class LVOOP? d ' a class of child...

    Hello

    I have a number of modules (classes) that inherit from a base class called "Module".  I have all these in an array of type 'Module', I would like to save some information of each of these modules, but I need to make the distinction between each module.

    Is there a way to determine the class name of the data cable?

    Can I use the flattened string Variant, but I was wondering if it had built in property for this node/function?

    Thank you
    Jonathan

    Examples of joint:

    Malkieri,

    There is no generation in function that does exactly what you are looking for, but you can use the 'Get LV class Path' VI to return the *.lvclass of an object path given.  Using this way, you can either parse the name, or you can use Server VI to get the name of the class, as shown in the picture as an attachment.

    Chris M

  • Determine the number of channels selected for traditional DAQ

    The blocks 'DAQmx task' and "Traditional DAQ Channel" look pretty similar (see attachments). The DAQmx block ist an individual selection of channels and I am able to determine the number of selected channels.

    Now I am trying to determine the number of selected channels to a traditional DAQ, but the property DAQmx block does not work here. I already tried the trad to some form of blocks. Range of data acquisition, but failed.

    Any idea?

    In traditional DAQ, there are several ways of specifying the list of channels. Assuming that your picture shows how you use your channel list is just a string of delimited by commas. Wire a constant to a string array node worksheet and specify "comma" as the separator and the number of columns must tell you the number of channels.

    Ben

  • IPCC Express - determine the age of current contact

    I am looking for a way to determine the age of the current contact during execution of the script. Something like a stage that would match the current age of current contact in a few seconds, then that could be stored in a variable and a value of trigger in an If / then. This could be used to trigger a backup CSQ overflow (if contact is longer than 90 seconds, then route the call to the queue of backup). Normally I use a loop and simply count the number of times that I spend in the loop, but for a specific application, it would be preferable to use the age contact instead. Any suggestions greatly appreciated.

    Thank you

    Chris

    Check:

    Download Statistical Reporting (general article)

    Purpose of report: CSQ ICD

    Field: Current wait time

    Position in queue

    Expected time-out

    Connected resources

    Row identifier: should be your CSQ identifier or string variable

    Statistical variable: Variable that you want to fill in your script.

    As you will see, there are many choices. I think that the current waiting time might be what you want.

  • determine the 'parent' of a selection

    Assuming that the cursor is in a story or selected text in a story, how, of app.selection, determine the paragraph, in which the cursor is?

    Of the paragraph, I could not history but I can't find any 'parent' properties from a selection to determine where he is.


    TX, Dave

    The cursor being placed in a story or with selected text:

    App.Selection [0] .parentStory > history

    App.Selection [0] .paragraphs [0] > paragraph selected (if you have selected more than one paragraph, only the first selected paragraph).

    Peter

  • ' Who ran me "-how to determine the name of the dbms_scheduler job that took me

    Hi community

    I see many examples on the interweb, which shows how you can use dbms_utility.format_call_stack to find the hierarchy of procs, functions, and packages that got me at a particular point in my code.

    For example, if proc (process) a proc calls B, which turning calls proc C, in the proc code C, I can query the call stack to find out this C proc was called by proc B which, in turn, was called by A proc

    However, I would like to extend it further.

    For example, using the example above, if A proc in turn was started by a dbms_scheduler job, I want to check (in proc C) the name of the dbms_scheduler job that began the whole process off the power.

    The reason why I want to do is that I inherited a (massive) system which is undocumented. In many places in the code, alert emails are sent using a custom package of "MAIL" to users designated (now including me) when some long-running process reaches certain milestones and/or complete.

    I added to the custom package "MAIL" a trailer on emails to display the call stack. I also want to show the name of the dbms_scheduler job that started.

    Over time, this information can help in the construction of the "map" of how the whole system undocumented hangs together and in the meantime to help solving the problems

    Impatience on your part

    Alan

    Use USER_SCHEDULER_RUNNING_JOBS or DBA _SCHEDULER_RUNNING_JOBS it is the columnSESSION_ID and when you know your session ID build query is very simple.

    select owner, job_name
    into ...
    from dba_scheduler_runnig_jobs
    where session_id=sys_context('USERENV','SESSIONID');
    

    You declare local variables in the PL/SQL procedure to read owner and job_name in them. Second thing, you have to manage possible exception no_data_found that can be triggered when the procedure is not executed work.

  • How can I determine the name of my exchange e-mail server: I try to add an e-mail account. in Windows Mail, running Windows Vista on a Compaq Presario

    Here are the details:

    I have Windows Mail installed on my PC and you want to add an e-mail account.  The issue started when I was trying to send a document I had picked up on a website and received an error message there was a problem with POP3.  Then, I tried to set up an e-mail account and after that following instructions was puzzled because I didn't know the name of the exchange server.  I am running Windows Vista on a Compaq Presario.

    I first contacted my internet framework, which is Charter Communications and they referred me to Microsoft, which, in turn, was told to contact Charter Communications, call the Compaq or come to this site.  At this point, I'm a little frustrated.

    Hello

    If you are tring to add an e-mail account in Windows Mail, you get the settings from your ISP (Charter Communications), then follow the information from Microsoft on how to implement.

    You need the Charter:

    1. your username with them

    2. your password with them.

    3. incoming for them mail server.

    4. the outgoing e-mail server for them.

    Charter e-mail settings:

    http://www.myaccount.Charter.com/customers/support.aspx?supportarticleid=1417

    Then follow the steps to set up Windows Mail:

    "Windows Mail: setting up an account from start to finish.

    http://Windows.Microsoft.com/en-us/Windows-Vista/Windows-mail-setting-up-an-account-from-start-to-finish

    See you soon.

  • How to determine the name of a file to a folder of control

    I would like to generate a log to track the names and results of cases from a control folder.  I don't see a way to access the file from within the process name.  I have a variable "inPDF' which is the 'document' and 'outResult' data type, which is of type"xml", but I don't see a way to access name file (or path) of the object"inPDF"'document '.  Is there a way to file name and the path?

    Name and the path to the document is accessible using the attributes of the document.  If you use a process, you can use a SetValue operation and get the attributes by using the function getDocAttribute (under functions functions/Document of the object).  There are three attributes that are of interest:

    baseName - gives you just the name of the file

    file - gives the file name and path (usually from the directory of the scene)

    wsfilename - the file name for the workspace, in the majority of cases the same as a file.

  • 4.0 EA3 replace behavior ignores the corresponding words currently selected


    1. Select (by double-clicking) a sentence that subsequently happens several times.

    2. press r to display the dialog to replace the text < CTRL >.

    3. enter a text of replacement in the field replace it with.

    4. check that only forwards and all are selected.

    5. press OK.

    All occurrences later in the target expression will be selected, but not the term initially chosen by double click.

    The expression behind highlighted is skipped and 3.2 behaviour guidelines, should be replaced as well.

    The replacement function has been significantly improved between EA3 and now. The selected original text is replaced in your example of our latest version of dev.

Maybe you are looking for

  • transfer all the photos of the iphone to drive external drive mac

    I have an iphone 5 s.  iOs version 7.0.4. I can't update the iOs because I have too little storage left on my iphone So I want to take off photos and store them on an external hard drive. I have not a good faith of apple cable to connect the phone to

  • Measuring frequency

    Hi, first of all, happy new year! I have two problems and I hope that someone can help me. Well, I need to measure the frequency of ill-defined but periodic signals (filtered biopotentiels) and I have to do with an acquisition of data USB-6008. The m

  • Manual for T43 (1871-FU1)

    I just bought a used T43 laptop and am looking for a manual for it. The "Access IBM" button not respond either online or off. I don't know whether I use it properly. I found online maintenance manuals, but no users of the manual. Any ideas on how I c

  • Windows 7 update error code "WindowsUpdate_0000064C"WindowsUpdate_dt000"

    Try to update the new system Windows 7 Home Premium. Received the error "WindowsUpdate_0000064C" "WindowsUpdate_dt000.  Could someone suggest a fix to clear these errors. Thank you

  • error when you try to update: "windows has not can find new updates, error code A 8024, 000.

    Original title : I can't update my computer... can anyone help me? I use Windows vista ultimate and I get the same message when trying to update-"Windows not can find new updates, error code 8024A 000 can someone help me?"