How to select all objects in a document?

AI newbie question:
I have an active document with two linked files, I need to select both of these in a script and embed both.  Then I will be selecting these separate and performing various actions on each.
In JavaScript, once I have the document object how can I select both linked files/items?
Thanks,
Dave

This will select all your linked files in the active document and embed them:
* a slight modification *
for(i = app.activeDocument.placedItems.length - 1; i >= 0 ; i--) {
        app.activeDocument.placedItems[i].selected = true;
        app.activeDocument.placedItems[i].embed();
cheers;
Message was edited by: sonicDream

Similar Messages

  • How, in Illustrator CS5, can I select all objects with three points (or nodes)?

    I am quite new to Illustrator, but it seems this should be simple.  (It is trivial in CorelDraw X4:  After selecting an object with three nodes, I go to Edit > Find and Replace > Find Objects > Find objects that match the currently selected object, and navigate through the remaining menus.)
    In Illustrator CS5, the options under Select > Same do not seem to include selecting all objects with the same number of nodes as the currently selected object.
    Double-clicking on the Magic Wand Tool also fails to provide such an option.
    Thank you for any help.
    P.S.  Also useful would be knowing how to add other criteria to this search, e.g. how to select all objects with three points *and* the current fill color.

    There is a script that can select "less than x points"
    Kelso Cartography

  • HT201301 How do I "Select All" in a Pages document? I would like to copy and past more than one paragraph at a time.

    How do I "Select All" in a Pages document. I would like to copy and paste more than one paragraph at a time.

    I just tab and hold untill the loop shows then let go and I get the menu with select all in it

  • Does cs6 allow you to select ALL frames in a document?

    I am doing a wedding book.  So I have many image frames on each page.
    I want to add a border (stroke) to all these frames.  But to my surprise, it appears that the Select All command only selects the frames in the current spread.  I did a bit of research here and on the net and it seems that, at least for the previous versions, there is no way to select all frames in a document.  This seems very odd to say the least.
    Does cs6 allow you to do this now?  Or is there a workaround to quickly add a stroke to all frames in a document?
    Thank you for any help.
    LD

    Unfortunately no, but there's a trick you can use. Shapes drawn with the sahpe tool DO accept default settings, so you can use the shape tools instead of the frame tools and place images in them, but that probably doesn't help you at this point.
    It actually should be pretty easy to apply an object style to all frames by script -- one or two lines I would think. You can ask over in InDesign Scripting
    It might also be possible to use find/change. I just checked, and yes, you can search for the [None] object style and change all, so that may be the best approach.

  • How to select all the colomns_names from a table, with their datatypes ..

    hi :)
    i would like to know, how to select in SQL all the columns names from a table with their datatypes so that i get something like this :
    Table 1 : table_name
    the column ID has the Datatype NUMBER
    the column name has the Datatype Varchar2
    Table 2 : table_name
    the column check has the Datatype NUMBER
    the column air has the Datatype Varchar2
    and that has to be for all the tables that i own ! ..
    P. S : i m trying to do this with java, so it s would be enough if you just tell me how to select all the tables_names with all their colums_names and with all their datatypes ! ..
    thank you :)
    i ve heard it can be done with USER_TABLES .. but i have no idea how :( ..
    Edited by: user8865125 on 17.05.2011 12:22

    Hi,
    The data dictionary view USER_TAB_COLUMNS has one row for every column in every table in your schema. The columns TABLE_NAME, COLUMN_NAME and DATA_TYPE have all the information you need.
    Another data dictionary view, USER_TABLES, may be useful, too. It has one row pre table.

  • How to delete all objects in a package?

    Hello,
    I've seen a similar question here. But is there a tool or a smart way to delete all objects in a dev class or a transport request?
    Best Regards
    Volker

    These are really 3 questions??
    1. To delete objects in a request there are a number of ways, here is one:
    Position cursor on modifiable request.
    Double click on request and choose 'Objects' tab
    Choose object line you want to delete and click 'Delete'
    Save your changes.
    2. To delete objects in a Dev Class:
    Go to work bench --> edit object, Class and give your class name, you will see delete option at the bottom of the screen.
    3. How to delete all objects in a package:
    here is a link with the steps you need for this: http://benxbrain.com/en/index.do?onInputProcessing(brai_object_thread)&001_threadid=0000161442&sysid=WP5&pgmid=R3TR&object=DOMA&obj_name=DEVCLASS&child_param=

  • How to SELECT ALL records of a TABLE VIEW in the BSP page

    Hi All,
    In the BSP portal, I am displaying some data(multple records) in the form of a table using the BSP TAG <htmlb:tableView>. I wrote the logic in the 'VIEW' of the BSP application which will be triggered by the controller. I have used the attribute selectionMode = "MULTISELECT" to have a Check Box to select a row.
    My requirement is to have a button/checkbox on the first column of the header of the table view. By clicking on this, it should select/desect all the records of the table. Could someone please help me how to do this? What attribute I should use in the tableview to get the button in the header row of the table and how to select all the records of the table.?
    Please provide your valuable inputs.
    Thanks & Regards,
    Paddu.

    Select all / Deselect all functionality when onRowSelection is there

  • How to copy all objects (incl. joins) from a BM into another existing BM

    Hello, i'm a regular viewer of this forum and now i have one issue that looks simple but i cannot resolve it.
    To make it less complex let's say we have a business layer with two business models (e.g. CIS-Finance and CIS-Logistics). For each BM we have a seperate subject area in the presentation layer.
    Each BM has unique objects, no object (like dimension time) is appearing in both BM's.
    Now there is a business requirements to have a 'mega' model, that is one extra BM that is combining both BM's. Let says we want to merge both model into one new big model.
    To achieve this I did the following:
    1) Duplicate CIS-Finance to CIS-All (using right mouse click on BM and click duplicate and change the name of duplicated BM to CIS-All)
    2) Then I select all objects in CIS-Logistics and copy all these objects and paste them into the new BM CIS-All.
    All selected objects were copied into the BM but the logical joins are not copied as well the content level information of the source tables.
    Is there a way to copy also this information (logical joins and content info), or do you suggest another approach to achieve this goal?
    Thanks, Ben

    what i did:
    1) i copied the original rpd to rpd2
    1) in the original rpd, i duplicated CIS-Finance to CIS-Logistics (so I have the same name for the BM to where i want to copy to)
    2) in the rpd2 i selected all objects in BM CIS-Logistics
    3) I pasted all objects to rpd BM CIS-Logistics (so BM has same name)
    unfortunately it doesn't work, all objects are copied but not the joins and content.
    You suggest UDML, can you be a little bit more specific? I searched the internet, found out what UDML is, but I cannot map it to what I want.
    Thanks.

  • 11.5.9 How to select all invoices in Payment batches ??

    Hi Guys,
    We are working on 11.5.9 Payment batches...
    Could anyone help me out on how to select all the Invoices whether due or not in the Payment Batches ?? I see that unchecking only due' doesn't work...is Pay through date is the only option ??
    Rgds,

    SelectManyListBox has a separate ALL checkbox visible. You can use that component
    jdevadf.oracle.com/adf-richclient-demo/faces/components/selectManyListbox.jspx

  • How to select all files in a stack? Control-click doesn't work

    how to select all files in a stack? Control-click doesn't work

    Switch to list or column view. If you must use icon view, instead of Shift-clicking items, click on an empty space near one of them and drag to enclose them.
    (119467)

  • How to select all files in "user dir" (LastAccessedDirectrory) using applet

    Hi,
    Can anyone tell me " How to select all files in "user dir" (Last Accessed Directrory) using applet"?
    For this which method in applet used?
    Thanks in Advance.

    1) Do you want "user dir" (watever that is) or do you wnat the last accessed directory? Last accessed by what/whom?
    2) Applets can't access the local file sytem, and for good reason, unless they're signed and the client has given permission.

  • How to select all the people that are not in any equipe  ?

    Hi,
    I have a nice SQL expression that gives me as a result all the "AGENTS" (people) that are working in an EQUIPE (a team)
    select a."AGENT_ID",
    a."NOM" || ' ' || a."PRENOM" "Nom",
    c.libelle "Equipe",
    a."DATE_EMBAUCHE" "Date embauche",
    a."DATE_DEBAUCHE" "Date débauche"
    from OBSERVATOIRE."AGENT" a,
    observatoire.equipe_agents b,
    observatoire.equipe c
    where a.agent_id = b.agent_id
    and b.equipe_id = c.equipe_id
    order by nom
    Now, how to select all the agents that are NOT working in any "EQUIPE" (team) ?
    I have tried but could not succeed !
    Thank you for your kind help.
    Christian

    Christian from France wrote:
    It is not working because the table EQUIPE_AGENTS does not contains a row if the agent is not into any equipe.
    CREATE TABLE "OBSERVATOIRE"."EQUIPE_AGENTS"
    (     "EQUIPE_AGENTS_ID" NUMBER NOT NULL ENABLE,
         "EQUIPE_ID" NUMBER NOT NULL ENABLE,
         "AGENT_ID" NUMBER NOT NULL ENABLE)
    CREATE TABLE "OBSERVATOIRE"."AGENT"
    (     "AGENT_ID" NUMBER NOT NULL ENABLE,
         "GRADES_ID" NUMBER NOT NULL ENABLE,
         "NOM" VARCHAR2(50 BYTE) NOT NULL ENABLE,
         "PRENOM" VARCHAR2(50 BYTE),
         "DATE_EMBAUCHE" DATE NOT NULL ENABLE,
         "DATE_DEBAUCHE" DATE)
    The only way to "know" if an agent is not into any equipe (team) is to search into the EQUIPE_AGENTS table, and if we do not find the ID of the agent into this table, then we know that this agent is not into any EQUIPE (team).
    I don't know ho to translate this into SQL.And that's what my query does. It uses an OUTER JOIN so that a result record is returned whether or not there is a record in EQUIPE_AGENTS. And the check for EQUIPE_ID is NULL restricts the result set to those where there IS NOT a record in EQUIPE_AGENTS.
    A more traditional way would be to use NOT IN or NOT EXISTS clauses, but they can prove inefficient.

  • How to select all PERNR from infotype 0000 (Action)

    Hi,
    How to select all PERNR from IT0000 (Action), if an action has been done on IT0000 between reporting START DATE and END DATE. What fields I should consider in IT0000.
    Thanks,
    mini

    You can try:
    data: t_0000 type standard table of pa0000.
    select * from pa0000
       into corresponding fields of table t_0000
      where begda le <your-initial-date> and endda ge <your-final-date>.
    Or use one of options described at last forum.
    Regards!
    Marcello
    Edited by: Marcello Lanzoni on Jul 24, 2008 8:11 PM

  • How to select all the text in a JTextArea??

    any1 know how to select all the text in a textarea?? just like when we press ctrl+a?? i use JTextAreaName.selectAll();doesnt work
    helt..

    worked OK for me
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Myprogram extends JFrame
      JTextArea TArea = new JTextArea(10,10);
      public Myprogram()
        JMenu JMenuName= new JMenu("JMenuName");
        JMenuItem  JMenuItemName=new JMenuItem("Select all");
        JMenuName.add(JMenuItemName);
        JMenuItemName.addActionListener(new SelectAllAction());
        getContentPane().add(new JScrollPane(TArea));
        JMenuBar mb = new JMenuBar();
        mb.add(JMenuName);
        setJMenuBar(mb);
        pack();
        setLocationRelativeTo(null);
        setVisible(true);
      class SelectAllAction implements ActionListener
        public void actionPerformed(ActionEvent e)
          TArea.requestFocusInWindow();
          TArea.selectAll();
      public static void main(String[] args){new Myprogram();}
    }

  • How to select all text in document?

    I need to select all text in a long document to export to rtf. I only seem to be able to select a story. Any ideas in how I can do it?
    Thanks
    Ian

    Can't be done. You'll have to link all text boxes together in one long story, or use the script "ExportAllStories.jsx" that comes with your default InDesign installation.
    There are other alternatives (all of them using scripts), and the best way may depend on what your intentions are with the exported file -- if, for example, you want to read it back into their original text frames after editing, well, there are ways to do that.

Maybe you are looking for

  • Problems with Remote key

    Hi everybody, I have problem with key mapping. My table has only one field Name (Text[50]). This field is a display field. Value Key Mapping of the table is set to Yes. Problem is that I cannot see the Remote key field among destination fields in Imp

  • Replication of Quotations from ECC to CRM

    Hello Experts, The scenario is as follows: I am required to replicate all the quotations from ECC to CRM. My question is: what are the various middleware settings to be done? I have created a transaction type for quotation by the same name in ECC and

  • Start site is not uploaded correctly. html is missing. What can I do?

    Hallo, I am searching for a new web host and created my site with Iweb. Unfortunately I cannot upload it correctly to the testing site. Pictures and the blog are all right. But the start site with its links is missing. Apparently it is an Iweb fault.

  • How to import all layers in Photoshop at one go ?

    Hi there, I am trying to import a Photoshop psd file into AE. This file has a lot of layers. When I do File > Import > FIle, it ask me whether I want to import as footage or Layers. When I chose Layers, I am asked which layers I wanna import in. As I

  • Can't receive group calls.

    Everytime someone calls me in a group it will not let me answer the call at all. It just says missed group call. If I have the skype tab open the call option will pop up ding once then immediately disappear, Still won't let me answer if I spam where