How to find Object Styles

Hello,
Adobes Scripting Guide: JavaScript explains well(more or less) how to find text, greps and glyph. But lacking is how to find Object Styles. The Find/Change Dialog box in ID does have this option.
What I would like is a script that will find a style, then fill in the color of that style so that one can clearly see in a long document where the style was used. When there are only subtle differences between styles, this is helpful.
The first thing to do is to clear all the options and that is my first stumbling block. In the following code the first line works, clearing the find of any parameters. The second line does not work.
app.findObjectPreferences = NothingEnum.nothing;
app.findChangeObjectOptions = NothingEnum.nothing;
I also need to set the Search for Documents (not All Documents nor Selection) and to set the Type for All Frames.
The second obstacle is setting the Find so that it will find the object I am looking for. The code below does not work but I do not know why.
app.findObjectPreferences.getElements("Object Style 1");
Any help is appreciated.
Tom

You need this:
app.findObjectPreferences = null;
app.findObjectPreferences.appliedObjectStyles = "Object Style 1";
found_objects = app.activeDocument.findObject();
Some things are different in scripting compared to the interface. For instance, the scope of the search in the interface is just "document" or "all documents", but in a script you can search a page, a spread, almost anything (I have to say that this is true for text and grep searches, I never tried it for objects). Finding frame types is different as well: there's no parameter for that I don't think. Instead, you have to find all frames that have a particular object style applied to them, then cycle through them checking their frame type; if the type matches your criteria, do what you want with it.
Peter

Similar Messages

  • How to find Object name for a object?

    Hi Experts,
    How to find Object name for a particular Object? Is there a Tcode for it?
    __Like Object name for__
    Material number -  materialnr
    Goods receipts / return - matbeleg
    Accounting documents -  rf_beleg
    How to find Object name for other Objects? Is there a particular way?
    Thanks & Regards
    Chandan

    Hi,
    You can find objects in SNRO transaction.
    In SNRO search by giving long text...
    for eg., Service .. for service entry sheet. keep the first letter in capital letter only.
    Thanks & Regards,
    Anand.

  • How to find different styles from Indesign CS4 Grap style?*

    Hi,
    I would like to know how to find two different character style from a single grap command in Indesign CS4.
    For instance, A word having bold/italic character style following with punctuation having normal/none character style.
    Thanks for your help!
    Regards,
    Bharat

    With GREP styles you can search text only, not formatting.
    Peter

  • How we find object list  for SAP MM T codes.

    Dear Experts,
    How can i find object list  for SAP MM T codes.
    Actualy that is required for SAP User autorization review.
    Regards
    Kumar

    Get t.codes list from table TSTCT using SE16,Enter t.code as MM* or M*. Execute it.
    You will get a list of MM t.codes.
    Also you can refer SU22 for authorization objects from above t.codes list.

  • How to find object use in other object

    Hi All,
    I want to find one object for example procedure which is used in other object like function,procedure or view.
    How can i find it?
    Thanks in advance.

    user647572 wrote:
    Hi All,
    I want to find one object for example procedure which is used in other object like function,procedure or view.
    How can i find it?
    Thanks in advance.Use DBA_DEPEDENCIES view :
    SQL> create table my_tab (id number);
    Table created.
    SQL> create or replace procedure my_proc
      2  as
      3  p_id number;
      4  begin
      5  select id into p_id from my_tab;
      6  end;
      7  /
    Procedure created.
    SQL> select owner, name, referenced_name from dba_dependencies where referenced_name='MY_TAB';
    OWNER      NAME                 REFERENCED_NAME
    SYS        MY_PROC              MY_TAB
    SQL>

  • How to find Script Style for Standard Purchase Order Form "MEDRUCK".

    Hi ,
    I need to convert script style using by Sap-script form 'Medruck' to Smart form style and for this i have to find Sap-script style name for Medruck.
    If anyone have a idea about it then plz tell me.
    It's very urgent for me.
    Thanks & Regards,
    Gaurav.

    Hi Gaurav,
    If I'm not wrong, we don't have any SAP-Script Style, but when we are trying to upgrade to SmartForms simply u upgrade using smartforms transaction code, and it will convert all your character formats and paragraph formats and try to assign as SYSTEM Style in Smartforms.
    If you find the difference then you need to create SmartStyle manually and assign it.
    Thanks,
    -Pavan

  • How to find objects in a tablespace?

    Is there a possibility to find out all objects, that are placed in one tablespace?

    select owner, count(object_name) from dba_objects where object_type = 'TABLE' group by owner;
    null

  • How to find objects with active System status-JEST

    Hi All,
    Is there any way in which I can find Production operations based on their active system status.
    The problem I'm facing is SAP stores system status for an order in JEST. And JEST contains many active system status for a PP Operation.
    I have to select all Operations which have status of say e.g. REL(released).
    If the select statement is as below
    select objnr stat
    into table t_jest
    from jest
    where stat = <Internal format of REL>
    and inact NE 'X'.
    Then this will also give those objects which are having REL plus any other higher status.
    Whereas what I want is only those objects which have their current status as REL and not which also as REL.
    The other way of doing this is get a all object and statuses and loop through records and filter out unwanted ones. But it will have serious impact on performance.
    Does anyone has some other solution to the above problem. Any function module or any other table which stores only the current active status.
    Any help would be of great help to me.
    Thanks.
    Message was edited by: Stephen Peter

    Hi Peter
    we have to these FMs to get the Status of Prod.Order.I have Developed one Reoprt which will show up order staus / stages
    like : col1 is orders which are in Open nothing but REL.So u have to put a Condition where jest-stat ='REL' only.
    OPEN-TECO  PCNF-TECO
            2          0
            9          5
            0          0
            2          0
            3          0
            4          3
            0          1
            0          0
            1          0
            2          0
           23          9
    CRS_SORDER_CREATE_UPLOAD_PROXY                                                               
    CRS_SORDER_STATUS_UPLOAD_PROXY                                                               
    MASS_PERFORM_STATUS_CHANGES                                                                  
    STATUS_READ                      Read Object Status (JSTO and JEST)                          
    STATUS_READ_MULTI                                       
    * Getting the Order Number and Obj.Number.
       select aufnr erdat werks objnr from aufk
                          into corresponding fields of table  otab
                                      where auart in ('PP01','PP02')
                                        and erdat gt s_budat-low
    *                                    prabhu on 24.5.5
                                        and werks in s_werks.
    * Getting the Obj.Number and Status Number
    data : w_stat like jtab-stat.
    *  loop at otab.
      if otab[] is not initial.
      select objnr stat from jest
                        into corresponding fields of  table jtab
                        for all entries in otab
                              where objnr = otab-objnr
                              and inact eq ''.
      endif.
    * Getting the Status Text for All The Orders
      loop at jtab.
      read table ttab with key istat = jtab-stat.
      if sy-subrc ne 0.
      select single  txt04 txt30 from tj02t
                           into (ttab-txt04,ttab-txt30)
                               where istat eq jtab-stat
                                 and spras eq 'EN'.
       if sy-subrc eq 0.
        ttab-istat = jtab-stat.
        append ttab.
        clear ttab.
        endif.
       endif.
      endloop.
    i think u got one Inputs.
    Regards
    Prabhu
    [email protected]

  • How to find object type

    hi friends,
    i have a object type -BUS2081. which is bein used in MIR4 transaction.
    how to get the object type for transaction fb03.
    thank u,
    kat

    Hi,
    It is BUS1028
    Mark use full answers.
    Regards,
    Nanda.

  • How to find Object List from multiple Transport Requests

    I have more than 300 transport request to review, going though all requests will take lots of time. Is there a way to find the list of objects from these requests so that I can go through objects only and by this way the list of objects will be certainly less than 300 for example.

    Maybe you can use SE03 function "merge object lists" for this purpose. You can enter the 300 numbers and merge all objects e.g. into a transport of copies, that you can delete again after your exercise. Don't lock the objects inside this temporary request.
    The benefit is that each object will only appear once (if not, choose "object list -> aggregate" in the request details), and you can navigate to the underlying objects, something which a simple SE16 for E071 does not offer.
    Thomas

  • How to find Object delete information when Audit is not enabled.

    Hello Experts,
    One of the object is deleted from our environment .
    I tried fetching the deskin report frm acitvity universe but , no data availble as the audit option is not enabled .
    Is there any way to get the information of object deleted , like who deleted it.
    This is very import isssue to find out the information can any one help me with it.
    Regards,

    Hi Neo, in addition, I suggest you to remove any right to delete any object if it is in the Production environment.
    If you are using the BusinessObjects tool, you should join ASUG at www.asug.com

  • How to find Object Instance.Key

    Hi all, I have a problem. I have a workflow as: I am as being an administrator, request for a resource for a user. And then an approver approves it. But before he approves I want to see the object form prepopulated with target user's information. So that I wrote i java class and attah as process task adapter to update task of approval process of the resource. In code I will set the form values using setObjectFormData(long plObjectInstanceKey, java.util.Map phAttributeList) function of tcFormInstanceOperationsIntf. But ı don't know how to get plObjectInstancekey which is "Object Instance.Key". I tried to use getAssociatedUsers operation but it does not work since my resource is not provisioned to user yet. Any idea?

    It's immediately available when you go to map the values on your adapter. It should be under Object Data and the available values from there.
    -Kevin

  • How to find object dependencies using the DBA_DEPENDENCIES

    Hi,
    Could some one please help me in finding out the object dependencies among objects?
    I was trying to find out the all levels of dependencies for a given object in  a given schema, but this following query is not working for packages type.
    I want to find out all LEVELS of object involved in the creation of a package.
    Example:
    SELECT DISTINCT owner,name,referenced_owner,referenced_name,referenced_type, LEVEL Le1
    FROM dba_dependencies
    where owner =user
    START WITH NAME = 'object name'
    CONNECT BY NOCYCLE PRIOR referenced_name    = NAME
    --AND PRIOR REFERENCED_OWNER = OWNER
    --AND REFERENCED_TYPE = 'PACKAGE'
    ORDER SIBLINGS BY name
    Please help.

    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    WITH v AS (
        SELECT  line
               ,col
               ,name
               ,object_type
               ,object_name
               ,type
               ,usage
               ,usage_id
               ,usage_context_id
        FROM    user_identifiers
        WHERE   object_name = 'XML_SPREADSHEET'
        AND     object_type = 'PACKAGE'
    SELECT  LEVEL,LPAD(' ', 2*(LEVEL-1)) ||NAME
           ,object_type
           ,type
           ,usage
           ,line
    FROM v
    START WITH name = 'T_REC_CAPTION'
    CONNECT BY PRIOR usage_id = usage_context_id
    ORDER SIBLINGS BY line, col
         LEVEL LPAD('',2*(LEVEL-1))||NAME   OBJECT_TYPE   TYPE               USAGE             LINE
             1 T_REC_CAPTION                PACKAGE       RECORD             DECLARATION        317
             2   TITLE                      PACKAGE       VARIABLE           DECLARATION        318
             3     VARCHAR2                 PACKAGE       CHARACTER DATATYPE REFERENCE          318
             2   TOPTITLE                   PACKAGE       VARIABLE           DECLARATION        319
             3     VARCHAR2                 PACKAGE       CHARACTER DATATYPE REFERENCE          319
             2   SPAN                       PACKAGE       VARIABLE           DECLARATION        320
             3     PLS_INTEGER              PACKAGE       SUBTYPE            REFERENCE          320
             2   COMMENT                    PACKAGE       VARIABLE           DECLARATION        321
             3     VARCHAR2                 PACKAGE       CHARACTER DATATYPE REFERENCE          321
             2   REPEATTITLE                PACKAGE       VARIABLE           DECLARATION        322
             3     BOOLEAN                  PACKAGE       BOOLEAN DATATYPE   REFERENCE          322
             1 T_REC_CAPTION                PACKAGE       RECORD             REFERENCE          324
             2   BINARY_INTEGER             PACKAGE       SUBTYPE            REFERENCE          325
    13 Zeilen gewählt
    What do you mean with They are giving only one level depth of dependencies?

  • How to find objects ( tables) used in SP

    Is there any query with which I can find all the tables used ( to perform Select Insert Update Delete operation) in a procedure in oracle 10g.
    I want to take back up of all the tables used in a particular. but it is becoming difficult to find by looking at line by line as the sp is of 3K + lines.

    With USER_DEPENDENCIES view :
    SELECT referenced_owner, referenced_name
    FROM user_dependencies
    WHERE type = 'PROCEDURE'
    AND name = 'YOUR_SP_NAME'
    AND referenced_type = 'TABLE'
    ;

  • How to find objects and classes

    hi
    any notes or path on objects and classes on crm?

    Hi Kumara
    I beleive your talking about the Classification system.
    To get to this go here: SPRO->IMG->Cross-Application Components - -> Classification System - -> Classes - -> Maintain Object Keys
    This will give a list of Tables which are currently set with Object Keys, you may need to add a new table and configure.
    Next
    To get to this go here: SPRO->IMG->Cross-Application Components - -> Classification System - -> Classes - -> Maintain Object Types and Class Types
    Here you assign a Class Type to Link your Table from the previous step, this class new Class Type will be used with a New Class to created in the following steps.
    Goto Transaction CT04 - Create Characteristics
    Here you create effectively attributes of a Class (Fields)
    Goto Transaction CL01 - Create New Class
                              or CL02 - Maintain Class
    Create a new class linked to your Class Type from previous steps
    On the Char.. Tab you can add the new Characteristics created in the previous step to your new Class.
    Based on the Object Key from the first step, these new attributes shoulds all now link together. If the key is of type 'RAW'  (Binary) it may not be possible to link correctly, therefore some ABAP maybe required to create the link, depending on your application.
    Hope this helps.
    <b>Reward with points if useful.</b>
    Regards
    Arden

Maybe you are looking for

  • How to make more than one version in XCode?

    So i have already created an app and summited version 1.0 to the app store it was approved and is now live on the app store. I also have created version 1.1 with minor improvments and released that one with an update as well and is also now live. My

  • Print pdf file directly from a folder, Adobe Reader X in  Windows Server 2003

    In previous versions of Adobe Reader we were able to print pdf files groupwise directly when selected in a folder. Now I've installed Reader X on the Windows Server 2003 environment. Logged in as administrator I can still select <Print> by selecting

  • How do you get it out of recovery mode

    i cant get of the itunes screen and the pluging in sign to go away. i am singed in and lla dn it says to plug it in to m computer which i did, but it still isnt working. i feel like i have broken my phone and there is nothing else to do. and it says

  • Output Parameters in Java

    Hello All, I've been trying to find a way to pass parameters as output as I've done previously in C and in Pascal. For example, in C, you can do the following declaration: int someMethod(int& num); which returns an integer but also outputs another in

  • Can't click the browse file button

    When I click the Browse file button to upload a photo or a pdf from my computer, the dialog window does not show up at.Why does this happen, how can I fix it.