Select the Inline object by its script label

Hi Friends,
How to selct an Inline object by its label?
My Code
myDoc.pages[0].allPageItems.item("AAA").select();
But it shows the following error
myDoc.pages[0].allPageItems.item is not a function.
Regards,
JesRoberts.

Hi Friend
Can you tell me what was wrong with my answer to your previous post that you didn't show any acknowledgement of it.
Did I not answer it?
Maybe before starting new post you should finish of the "finished" ones

Similar Messages

  • View all script labels and find an object by its script label

    Hello,
    I have an InDesign document in which many objects get a script label. I know how to view and edit the script label of an object, but is it possible to:
    1 - See a list of all the script labels of the document (as can be done with the styles for example)?
    2 - Search an object in the document by its script label?

    If you are using OSX this AppleScript displays a list of document labels:
    global labels
    set labels to []
    tell application "Adobe InDesign CS6"
        set x to every page item of active document
        repeat with i in x
            if class of i is group then
                my checkGroup(i)
            else
                my getLabel(i)
            end if
        end repeat
        display dialog labels as string
    end tell
    on checkGroup(g)
        tell application "Adobe InDesign CS6"
            set gi to all page items of g
            repeat with a in gi
                if class of a is group then
                    my checkGroup(a)
                else
                    my getLabel(a)
                end if
            end repeat
        end tell
    end checkGroup
    on getLabel(pageitem)
        tell application "Adobe InDesign CS6"
            if label of pageitem is not "" and label of pageitem is not in labels then
                set labels to labels & label of pageitem
            end if
        end tell
    end getLabel

  • [CS3 JS] Getting a page item by its script label

    I have a text frame on a master page with its script label set. In my script, I am trying to get a reference to the text frame with this:
    var doc = app.activeDocument;
    var spread = doc.masterSpreads[0];
    var tabFrame = spread.allPageItems.item("TabLeft");
    I get the error "spread.allPageItems.item is not a function"
    Any help will be appreciated. Thanks.
    Rick

    Hi Rick,
    spread.allPageItems returns a flattened array of all of the page items in the spread, at any level of the hierarchy (i.e., inside groups and other page items). Is that what you want? Sadly, allPageItems does not benefit from the special case where we use the label as a name, so you'll have to iterate if that's what you want.
    As Peter says (thanks, Peter!), spread.pageItems.item("label") gives you all of the page items whose label matches the string, but it does so in sort of a weird way--you'll always get a page item object. If no page items match, you get an invalid page item; if one matched, you get a single page item, and if multiple page items matched, you get a page item object that actually contains multiple page items. It can take a little testing to figure out exactly what it is that was returned.
    Thanks,
    Ole

  • How to select the download location? its automatically downloading to users folder in c drive. i wanna change it..plz help me out......

    how to select the download location? its automatically downloading to users folder in c drive.. i wanna change to my desktop...plz help me out...

    Tools -> Options -> Save files to -> Click browse button and browse for folder where you want to save the file.

  • How to select the all object at a time while installing business content

    Hi All,
    how to select the all object at a time while installing business content Please let me know if nay document is there
    Thanks Ahmed Pasha

    Hi,
    Please check out the below links
    [Business content Installation|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/102906a4-f13d-2e10-7199-ce316ff254b8?QuickLink=index&overridelayout=true ]
    [BI Content|http://wiki.sdn.sap.com/wiki/display/BI/InstallingBusinessContent]
    Hope it helps.
    Regards,
    AL

  • HI. I have itunes 10.6.1.7. When I goto movies i am not able to add and when I click on add file to library and select the file and add its not getting added. When i goto Library it says  that movies I add are in library.Which I cant add

    HI. I have itunes 10.6.1.7. When I goto movies i am not able to add and when I click on add file to library and select the file and add its not getting added. When i goto Library it says "feature films and home movies you add to itunes appear in movies in your iTunes library. To play a movie, just double click it". And below are two options for Downloading movies from store and rent movies. Please help.

    I get the exactly the same problem with win 7, i rang apple support who suggested i try another machine/or create another account on my machine???? why should i, stupid ipad 3rd gen is now sitting here un syncable, apple support ....tut tut very poor support, its a shame im out of the 7 day period otherwise this ipad would be going straight back, older versions of itunes worked fine, some one must know a fix for this??

  • How can i get the value stored in the session object using its sessionid

    how can i get the value stored in the session object using its sessionid by running stand alone java application

    myforum wrote:
    how can i get the value stored in the session object using its sessionid by running stand alone java applicationThis does not seem to make sense! You need at least to give a lot more detail of what you are doing.

  • Selecting the particular object

    Hi,
    Selecting single frame also selects the adjacent objects is there any way of selecting only the single object and not to select the adjacent objects

    Its not a group i have 5 to 6 text frame each placed one below other with .2mm distance between them, and each frame contains 5 to 6 objects. so when i select a particular outer frame other adjacent frames are also gets selected , because i need to hover through those frames ?

  • How to select the business object in ESR and the packages used in SAP 7.1

    Hi
    I am trying to use the Service interfaces of ESR available in ESA ECC-SE 604 and a few in SAP APPL 6.04.
    How can we choose the GDT,Business objects or Service interfaces for the requirments?
    Can we know which package provides which objects like what are the available things in ESA ECC-SE 604 and when should PI or ECC use it.
    I am trying to create functional location Service interface(Installation Point ) and Equipment (Indivisual Material) for untillities requirment.
    Thanks in Advance

    Hi,
    For choosing the GDT, Business objects or Service interfaces for the requirements you first need to create dependencies between the components. For that read the "Defining Dependencies Between SWCV and EnSWCV in SLD" topic from the following link
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0bb5687-00b2-2a10-ed8f-c9af69942e5d]
    SAP has published all Services that support SAP Business Suite functionality on the Enterprise Services Workplace in the SAP Developer Network (SDN). You can refer that for getting the information of different services and their objects.
    Regards,
    Jitender

  • Inline objects in page layout mode

    Before I drive myself any more insane than I already am can someone please confirm, or otherwise, that it isn't possible to use inline objects in page layout mode or, indeed, inside text boxes in word processing mode? Assuming this is the case can anyone suggest a work around?

    Please don't become insane, there already too many such human beeings
    Here is the way I work (mainly because I don't store my photos in iPhoto).
    drag and drop the picture file onto the doc's page.
    select the picture frame with its square handles
    Cut it so it will no longer appear but is stored in the clipboard.
    Put the cursor where you want to insert the picture then paste.
    Yvan KOENIG (from FRANCE dimanche 29 juin 2008 15:44:25)

  • Selecting particular range of style using script

    HI All,
    Can anyone suggest me that how we can select the range of text using script.
    I am having some different para styles say for eg., PS1, PS2, PS3, PS4...........
    I may applyed these styles in some jumping order but except PS1, now I want to select paragraphs with applied style PS1 to stop before the next appearence of PS1 style.
    Like: In a document Para 1, 10, 14, 25 were applied with PS1, so the selection should go in the way like 1-9, 10-13, 14-24 and so on
    Regards,
    love_all

    "The" index of a paragraph is nothing special, it's the index of the first character of that paragraph inside its parent story. In particular, it does NOT tell you "this is the 5th paragraph" or something like that.
    This is because "Paragraph" is an artificial construct inside "Text", not a truly existing first class object. Same as "Line", "Word", "Character", and indeed, any text selection at all.
    Since you already have a "found text" array, "the index" of the nth entry's paragraph -- with the constraint described above -- can be simply found by using foundText[n].paragraphs[0].index (the index of the first character of your foundText is foundText[n].index).
    If you DO need to know the nth number of the paragraph, search this forum. I think Peter Kahrel answered to a post to answer that exact question.

  • How to activate the Info object catalog in Business content

    Hi,
      While trying to activate the Info object catalog, I found that some of the info objects under this catalog was earlier activated by some other developer. I brought this catalog (0SALES_CHA01) over to the Business content activation panel ( with only 'necessary object settings ) and all the info objects that also came along  were de-selected since I didn't want to install those again). When I tried to install these I get an error indicating that some of the info object in question are not already active.. and ultimately the catalog doesn’t get activated , although more than half of its infoobjects are already active under the '0CHANOTASSIGNED' node.
    Please let me know whether I can get only the Catalog activated without getting any existing activated info object merged or installing those which are not already activated.
    Thanks
    Arunava

    Hello Arunava,
    Just drag the infoobject catalog as u did earlier to the left in the bus cont installation screen with "only necessary object" option.
    Dont try to deselect any object. Go ahead with the default options and install in background.
    Now you can check for the available objects in the catalog. if you have some objects missing, and available in unassigned node,double click on the newly installed infoobject catalog, select the required objects (which are not yet assigned to this) from the left side and bring them to the right side.
    this will make the unassigned objects assigned to the required catalog.
    Hope it helps..
    (please dont forget to reward points to helpful answers)

  • FEATURE REQUEST: 'Select Printer' option when printing envelopes or labels

    I have a Samsung laserjet printer that will not print labels properly with the default paper type setting...the toner smears. So I have created a second printer object for the Samsung device with 'Labels' selected as the default paper type and I've named
    it 'Samsung Labels'. I can select it as the printer in Word 2010 and it will print labels correctly for that session. I've read the discussion about Word 2010 only remembering the printer preferences during the current session. That is unfortunate, but I consider
    this to be even worse: when you click the 'Print' button after creating your label or envelope, Word just prints to the default printer without displaying the print control panel. This prevents me from selecting the printer object that I've created to print
    labels correctly with my Samsung. I use a number of different printers and I don't want to necessarily use my default printer for Word. I want to be able to select a different default printer for Word and also have the option to select a different printer
    for a particular print task in Word...like labels. I don't want to have to go into Word's print options every time I want to print a label and make sure that everything is set correctly. It makes no sense that I can't select a printer object when I hit the
    print button. There are a million 'features' built into Office that I would never think of using, but one that seems so obvious is missing. Arg!
    I doubt that I'll hear back from someone with a simple work around for this, but I'd love it if I did.
    Thanks in advance,
    Wayne
    Wayne S. CompTIA A+ CompTIA Network+ Microsoft MCP

    I would like to second Wayne's suggestion but I am concerned with printing envelopes, not labels. I have been a PC user (and even an instructor) since the days of VisiCalc, Lotus 1-2-3, and the first Microsoft products. It has never ceased to amaze me
    that, as mentioned by Wayne, the most fundamental needs are overlooked. It wastes a lot of my time to constantly have to change the printer just to print an envelope or to print something on letterhead. We have a lot of documents that include one letter on
    letterhead followed or preceded by several pages that need to print on plain paper. I think I should be able to tell Word that page X is letterhead, and the others default to the plain paper tray or printer. I also should be able to tell the print envelopes
    feature that envelopes are on printer X or tray X. Then every time I need to print such a document, I just click print for the doc and envelope print for the envelope (I keep an icon for this in my toolbar). We use a legal software package in our office that
    lets you specify the appropriate printer and tray for reports, general checks, trust checks, labels, receipts, deposit slips, bills and pre-bills! Super easy and convenient. Word processing should be SMART so we don't have to be bothered with these very mundane
    and never-ending printer issues!! Please, please, take this to the top! Please send your developers to actual real-world users and find out our needs!!!

  • What does Inline object "Y offset" mean exactly?

    Hi everyone,
    I am confused about inline object y offset. What does it mean exactly? I looked it up on adobe help, here is what it says there.
    Inline
    Aligns the anchored object with the baseline of the insertion point. You can adjust the Y Offset to position the object above or below the baseline. This is the default type of anchored object. In earlier versions of InDesign, these objects were called inline graphics.
    So.. is the baseline at the insertion point?  If the y offset is a negative number, does that mean the baseline move up? How come the object doesn't move ? like the adobe help say, "adjust the y offset to position the object above or below the baseline", doesn't it mean the baseline should stay and object moves accordingly? 
    Thanks a lot!

    The behavior of inlines is also tied to the leadingof the line in which they are located. When the line has autoleading specified, the inline starts withthe bottom edge on the baseline, and the leading for the entire line is adjusted to the height of the inline object. Changing the y offset in such cases would appear to make the inline object appear stationary while shifting the baseline up or down.Waht is happening is the "auto" amount of leading is being adjusted to compensate for the shift.
    If the line in which the object is inserted uses a fixed leading, that leading is honored, and the inline object may cover part of the text above. Changing the offset will make the boject appear to move up or down realtive to the baseline, which will remain fixed by the assigned leading.
    You might also find this discussion from the other day to be useful: http://forums.adobe.com/message/2722774#2722774

  • How do I select an Underneath Object?

    I'd assumed it would be "Press Shortcut Key and tap mouse" or something like that... but it's not. 
    It seems the Command Key changes the mode of the selection tool, whilst partially, sometimes, enabling selecting underneath.  But it's terribly inconsistent, and means that the selection mode is changed if I do manage to select the desired object.  Is this how it works?

    All of the above, and many others.
    I see no point in hiding these issues away in "feature requests".
    I hope others suffering in the same way find these truths faster through these cookie crumbs
    I need an online reminder and archive of all the things I'll need to teach someone else through in the future.
    But mostly because I think there's more chance Adobe will do something about anything if there's public acknowledgement of the problems/issues/oddities need addressing.
    The performance of Illustrator, on current generation hardware, is one I'll never get tired of pointing out.  It's amazingly bad.  I have no idea how they're not constantly ashamed of it.
    It's bad on PC's and Mac's.  There's no excuse for it.  This is creative software.  It should be as FLUID as the hardware permits.
    From what I'm seeing there's no hardware a consumer could buy to get a fluid experience in Adobe Illustrator.  That should be a source of constant complaint until it's addressed. PUBLICLY.
    However I have filed ONE Feature Request.  For a public feature request system with voting, linking and annotation capabilities. 

Maybe you are looking for