[cs5 - JS] How to get UID

Hello,
is there any way to get UID of selected pageItem? I can get selected item/items thats no problem, but I cant get the UID of selected item.
Thank you

I wrote on November 15:
When I already have UID of eg. selected rectangle, I save this UID to my text file. After that I will export indesign document into IDML and would like to find that rectangle in those xmls that are in IDML package. I know that UID should be unique identifier, so I assume that it should be stored in IDML... am I correct?
No.
But you can set the script label and use that.
I was wrong.
The IDML Self attribute appears to be the hex value of the scripting "id" property (what you call the "UID" but that is not standard terminology and I avoid it) with a u prepended.
For instance, given a textframe selected:
>> app.selection[0].id
251
We know that 0xfb==251, and if we export to IDML/IDMS, we find that as:
<Spread Self="ue2">
  <TextFrame Self="ufb" ...>
I don't know that you can depend on this correspondence, but it is present and seems fairly logical.
I apologize for the incorrect information!!

Similar Messages

  • How to get UID of the selected PageItem

    Hi All,
    I have placed a image in a document . I select the image ,now i need the UID for the selected pagitem( i,e image).How to get it?
    Thanks
    Sakthi

    Hi,
    I think you have to check Selection Architecture.
    Thanks

  • [CS5][JS] How to get paragraph number?

    Hi,
    With this thread I would like to know if anyone has experience with automatic numbering and scripting.
    If you have a title with automatic numbering applied, how do you get the number from that title using scripting?
    I can't find any property containing the current number applied. Or can't this be done?
    Any feedback would be great. Thanks.
    John

    para.bulletsAndNumberingResultText
    Harbs

  • How to get UIDs of pages containing a given PageItem

    Hi,
    I have the UID for a PageItem and I'm trying to get a list of the UIDs of the pages which the item is on.
    I'm using GetPageUIDs:
    IDocument* doc = Utils<ILayoutUIUtils>()->GetFrontDocument();
    if (doc != nil) {
        IDataBase* db = ::GetDataBase(doc);
        UIDRef itemUidRef = UIDRef(db, itemUid);
        InterfacePtr<IHierarchy> itemHierarchy(itemUidRef, UseDefaultIID());
        if ((itemHierarchy != nil) && (itemHierarchy->GetChildCount() > 0)) {
            UIDList onPageUIDs;
            Utils<IFormFieldUtils>()->GetPageUIDs(itemHierarchy, &onPageUIDs);
    For every item, I get an empty list in onPageUIDs.
    I can't find any examples for the correct way to use this function - am I using it wrong?
    Thanks
    Liz

    Hi
    I think FormField is some special form of page item.
    Try GetItemsOnPage from ISpread interface.
    Regards
    Bartek

  • How to get all images in indesign CS5 with javascript?

    Hi,everybody,
    How to get all images in indesign CS5 with javascript?I want to delete them.
    Anyone can give me some example codes?
    Thanks,
    Bridge

    Hey!
    This will remove all images from your InDesign document:
    var myLinks = app.activeDocument.links.everyItem().parent;
    for(var i = 0; i < myLinks.length; i++)
        myLinks[i].remove();
    Hope that helps.
    tomaxxi
    http://indisnip.wordpress.com/
    http://inditip.wordpress.com/

  • How to get Camera RAW / Photoshop CS5 to work with Canon 100D?

    How to get Camera RAW / Photoshop CS5 to work with Canon 100D? I don't want to by this product again and again...

    In what way is ACR not working in Bridge?  Is there no right-click Open in Camera Raw available from Bridge, or there is, but the ACR version is less than ACR 6.7.1 or what exactly is the issue? 
    Also, if you open Photoshop and do Help / About Plug-ins / Camera Raw, is ACR missing from the list, or if not, what version does it say is installed?
    You might also want to describe what methods you have tried to correct the issue, since saying you've tried what you've seen posted and they didn't work, isn't really much to go on.

  • How to get fluid layout for Dreamweaver CS5?

    CS 5 is not have Fluid Layoout,how to get fluid layout for Dreamweaver CS5?

    For Responsive Web Designs (RWD),  you can do it manually with CSS Media Queries.  David wrote a detailed tutorial below.
    Introduction to CSS Media Queries
    http://www.adobe.com/devnet/dreamweaver/articles/introducing-media-queries.html
    Or you can jump start your RWD projects with one of these popular Frameworks.
    Foundation Zurb
    http://foundation.zurb.com/templates.php
    Skeleton Boilerplate
    http://www.getskeleton.com/
    Initializr (HTML5 Boilerplate, Responsive or Bootstrap)
    http://www.initializr.com/
    DMX Zone's Bootstrap FREE extension for DW
    http://www.dmxzone.com/go/21759/dmxzone-bootstrap/
    Nancy O.

  • How to get Avery color? Illustrator CS5

    Can someone please help me get this colours in illustrator CS5? (Avery)
    I already know how to get the panton.
    I could'nt attached it this thread so I use imgur.
    [IMG]http://i.imgur.com/nXUyHsf.jpg?1[/IMG]
    And also How can I get this  Gradiation?
    C= 75
    M= 68
    Y= 67
    K =90

    Try here..........
    http://ap.averygraphics.com/?page=page&page_id=206&category_id=4

  • I just upgraded Dreamweaver CS5 to CC - sites did not migrate - how to get my sites back?

    I just upgraded Dreamweaver CS5 to CC - sites did not migrate - how to get my sites back?
    (I'd rather not recreate them all from scratch)
    PS - Go easy on me - it's my first post in this forum .
    Thanks,
    Rob

    Seems to be different results for different people.
    My sites have usually migrated automatically whenever I have upgraded. Others report the same outcome as you.
    I've never traced the reasons for non-migration to a single root cause.

  • Hi. I have CS5 and I want to upgrade to CC. Please tell me how can I do this and what is my benefit of having bought the CS5 earlier, do I get any discount? Thank you!

    Hi. I have CS5 and I want to upgrade to CC. Please tell me how can I do this and what is my benefit of having bought the CS5 earlier, do I get any discount? Thank you!

    I stand corrected, apparently the first year discount for previous CS customers is still in place.
    https://creative.adobe.com/plans
    Note the $29.99/month plan for the first year for CS customers.
    -Noel

  • How to get my own facebook/twitter wall status using CS5.5?

    Hi,
    i'm trying to learn how to get my own facebook & twitter wall status into flash so that I can export it out and install it in my iPhone.
    After reading the facebook and twitter API documentation, I'm still very confussed on how to use them.
    I'm very new to this and hope to get a suitable tutorial/sample code for some reference.
    Help is appreciated. Thank you.

    Hi,
    i'm trying to learn how to get my own facebook & twitter wall status into flash so that I can export it out and install it in my iPhone.
    After reading the facebook and twitter API documentation, I'm still very confussed on how to use them.
    I'm very new to this and hope to get a suitable tutorial/sample code for some reference.
    Help is appreciated. Thank you.

  • How to get slow motion with 720/60p material in Premiere Pro CS5.5

    Hi everyone,
    I'm trying to learn how to get a slow-motion effect with material that has been shot in 60p (59.94fps).
    I imported that material (AVCHD-codec) into Premiere Pro CS 5.5 and created a new sequence with 25 fps. Still, the material is in normal speed in playback. no slow motion...
    Can anyone tell me whether I missed out on something really simple :-) ? Or is the whole thing more complicated than I thought?
    Any help welcome,
    thanks!
    Toni

    Ok, it's weird to answer my own post, yet I learned how to do it and in case someone else is just starting up, it might be helpful:
    import the 60p footage into premiere, rightclick onto it in your footage-list and got to modify > interpret footage. there you can enter your desired framerate (in my case 25fps) and click "ok". then right click on the footage again and choose "new sequence from clip" and now you have a 25fps-sequence with true slow motion footage.
    thanks to Adobe ambassador Jon Barrie!

  • No timeline showing in after effect cs5.5.How Can I get it manually?

    I have downloade an after effect templete from net.When I open the project file timeline is gone.This is only happen to thsee templete only.Doed any one know how to get time line manully?

    In your toolbar at the top of the screen, click "window", then workspace, then standard.
    Calvin

  • How to get the values from IDXML during a Pre processing

    Hi,
    I have a requirement to validate the attributes in the IDXML request while deactivating a user. I have configured a workflow with the steps "Initiate" "Externalaction" "Disable" "Commit".
    The following is my IDXML request. I want to get the values that is coming in the IDXML in the pre action (written a c++ plugin) and perform certain validations.
    <?xml version="1.0"?>
    <SOAP-ENV:Envelope
                             xmlns:SOAP-ENV="http://schemas-xmlsoap.org/soap/envelope/"
                             xmlns:oblix="http://www.oblix.com">
    <SOAP-ENV:Body>
         <oblix:authentication xmlns:oblix="http://www.oblix.com" type="basic">
              <oblix:login>adminuser</oblix:login>
              <oblix:password>password1</oblix:password>
         </oblix:authentication>
         <oblix:request application="userservcenter" function="workflowDeactivateUserSave">
         <oblix:params>     
              <oblix:param name="ObWorkflowName">obworkflowid=9bbb88b273b1012d000086E812d695ad,obcontainerId=workflowDefinitions,o=Oblix,dc=dnb,dc=com</oblix:param>          
              <oblix:param name="uid">[email protected],ou=dnbCustomers,ou=People,dc=dnb,dc=com</oblix:param>
              <oblix:param name="attrName_1">UserID</oblix:param>
              <oblix:param name="attrValue_1">[email protected]</oblix:param>
              <oblix:param name="attrValue_1_old">[email protected]</oblix:param>
              <oblix:param name="attrOperation_1">REPLACE</oblix:param>
              <oblix:param name="attrName_2">ApplicationID</oblix:param>
              <oblix:param name="attrValue_2">12345611</oblix:param>
              <oblix:param name="attrValue_2_old">123456</oblix:param>
              <oblix:param name="attrOperation_2">REPLACE</oblix:param>
              <oblix:param name="attrName_3">SubscriberNum</oblix:param>
              <oblix:param name="attrValue_3">09787655</oblix:param>
              <oblix:param name="attrValue_3_old">09787655</oblix:param>
              <oblix:param name="attrOperation_3">REPLACE</oblix:param>
              <oblix:param name="noOfFields">3</oblix:param>
         </oblix:params>
         </oblix:request>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    How to get the values "ApplicationID","SubscriberNum" inside the preaction hook (c++). Please provide suggestions.
    Thanks,
    Lakshmi

    Read the doc, write the code, test it and debug it . http://download.oracle.com/docs/cd/E15217_01/doc.1014/e12491/idapi.htm#CDEIDDAF

  • How to get the values of all elements and sub elements from  following xml

    how to get the values of all elements and sub elements from following xml...
    <?xml version="1.0" encoding="UTF-8" ?>
    <List_AML_Finacle xmlns="http://3i-infotech.com/Cust_AML_Finacle.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://3i-infotech.com/Cust_AML_Finacle.xsd List_AML_Finacle.xsd">
    <TransactionID>TransactionID</TransactionID>
    <Match>
    <Src_Matched_Field>Src_Matched_Field</Src_Matched_Field>
    <List_Matched_Field>
    <FSFM_Matches>
    <NUMBER>NUMBER</NUMBER>
    <TERROR>TERROR</TERROR>
    <TU>TU</TU>
    <NAMEU>NAMEU</NAMEU>
    <DESCRIPT>DESCRIPT</DESCRIPT>
    <KODCR>KODCR</KODCR>
    <KODCN>KODCN</KODCN>
    <AMR>AMR</AMR>
    <ADDRESS>ADDRESS</ADDRESS>
    <SD>SD</SD>
    <RG>RG</RG>
    <ND>ND</ND>
    <VD>VD</VD>
    <GR>GR</GR>
    <YR>YR</YR>
    <MR>MR</MR>
    <CB_DATE>CB_DATE</CB_DATE>
    <CE_DATE>CE_DATE</CE_DATE>
    <DIRECTOR>DIRECTOR</DIRECTOR>
    <FOUNDER>FOUNDER</FOUNDER>
    <TERRTYPE>TERRTYPE</TERRTYPE>
    </FSFM_Matches>
    <OfacMatchDetails>
    <UID>UID</UID>
    <TITLE>TITLE</TITLE>
    <SDNTYPE>SDNTYPE</SDNTYPE>
    <REMARKS>REMARKS</REMARKS>
    <ID_UID>ID_UID</ID_UID>
    <IDTYPE>IDTYPE</IDTYPE>
    <IDNUMBER>IDNUMBER</IDNUMBER>
    <IDCOUNTRY>IDCOUNTRY</IDCOUNTRY>
    <ISSUEDATE>ISSUEDATE</ISSUEDATE>
    <EXPIRATIONDATE>EXPIRATIONDATE</EXPIRATIONDATE>
    <ADDRESS1>ADDRESS1</ADDRESS1>
    <ADDRESS2>ADDRESS2</ADDRESS2>
    <ADDRESS3>ADDRESS3</ADDRESS3>
    <CITY>CITY</CITY>
    <STATEORPROVINCE>STATEORPROVINCE</STATEORPROVINCE>
    <POSTALCODE>POSTALCODE</POSTALCODE>
    <COUNTRY>COUNTRY</COUNTRY>
    </OfacMatchDetails>
    </List_Matched_Field>
    </Match>
    </List_AML_Finacle>

    avoid multi post
    http://forum.java.sun.com/thread.jspa?threadID=5249519

Maybe you are looking for