How to check the availability of selection

Hello to all !
I have a script fills in the  selected area. But if the user has not made a selection, the string Mybounds = doc.selection.bouns an error. How I can check is the selection are not ?

You could wrap (var myBounds = app.activeDocument.selection.bounds) in a try clause.

Similar Messages

  • How to check the availability of a SCS-Instance

    Hi.
    We want to use HP serviceguard for our HA solution - but we do not want to pay so much money for the SAP serviceguard extensions. So we do it ourselves...
    My question: how to check the availability of the SCS-Instance on regular basis on os level?
    - is it enough to check the enqueue and message server process? I don't think so :o)
    - is it enough to check the latest entry of this file?
    /usr/sap/<SID>/SCS<SYSNR>/work/available.log
    some typical entry of this file looks like these:
    Unavailable 30.04.2009 17:03:07 - 04.05.2009 11:32:33
    Available   04.05.2009 11:33:33 - 05.05.2009 17:33:05
    Available   05.05.2009 17:35:36 - 05.05.2009 17:35:36
    Available   05.05.2009 17:37:51 - 06.05.2009 08:49:11
    Other ideas?
    Thanks for your help!
    Martin

    Hi,
    what type of script you want to run at OS level, u can check the status in MMC itself if you are using windows or u can check the status in index.html informaiton page or u can use JCMON at OS level to check the status.
    -Srini

  • How can you check the availability of iPhone 5 in Apple Stores?

    I want to check the availability of iPhone 5 in my nearest Apple Store. Is there a way I can do that online? Any links?
    (Sorry that this is in the wrong category, but I couldn't find any to match it)
    Thanks in advance,
    - Daniel 

    You could possibly try ringing the store if you want to know

  • How to check the usage of ram and cpu Performance for the particular application like sqlserver ,ms word

    how to check the usage of ram and cpu  Performance for the particular application like sqlserver ,ms word
    ranki

    Hi,
    You can use Performance Monitor and add the required counters.
    Check the below Technet article on Performance Monitor.
    http://technet.microsoft.com/en-us/library/cc749249.aspx
    Below are the steps to monitor the process in Performance Monitor.
    - Go to the Performance Monitor. 
    - Right-click on the graph and select "Add Counters".
    - In the "Available counters" list, open the "Process" section by clicking on the down arrow next to it. Select "% Processor Time" (and any other counter you want).
    - In the "Instances of selected object" list, select the process you want to track. Then click on "Add >>" button. Click on OK.
    Regards,
    Jack
    www.jijitechnologies.com

  • How to check the data of an archived table.

    I have archived a table created by me. I have executed the write program for the archiving object in SARA. Now how can check the data of my archived table.

    Hello Vinod,
    One thing to check in the customizing settings is your "Place File in Storage System" option.  If you have selected the option to Store before deleting, the archive file will not be available for selection within the delete job until the store job has completed successfully.
    As for where your archive file will be stored - there are a number of things to check.  The archive write job will place the archive file in whatever filesystem you have set up within the /nFILE transaction.  There is a logical file path (for example ARCHIVE_GLOBAL_PATH)where you "assign" the physical path (for example UNIX: /sapmnt/<SYSID>/archivefiles).  The logical path is associated with a logical file name (for example ARCHIVE_DATA_FILE_WITH_ARCHIVE_LINK).  This is the file name that is used within the customizing settings of the archive object.
    Then, the file will be stored using the content repository you defined within the customizing settings as well.  Depending on what you are using to store your files (IXOS, IBM Commonstore, SAP Content Server, that is where the file will be stored. 
    Hope this helps.
    Regards,
    Karin Tillotson

  • How to Check the report is Finished while calling a report from Forms 6i

    Dear All,
    I am Calling a report from oracle forms 6i, after runing report in " Run_Product(REPORTS,:fn_cntl.nb_report_name,ASYNCHRONOUS, RUNTIME, FILESYSTEM,pl_id, NULL);"
    I need to copy the pdf to store it in another place once the report is generated.
    My Problem is : that i want ot Check first the report has generated after " Run_Product(REPORTS,:fn_cntl.nb_report_name,ASYNCHRONOUS, RUNTIME, FILESYSTEM,pl_id, NULL);" is executed ? How to check the report is generated ot not?
    As i tried to use the below procedure after "Run_Product(REPORTS,:fn_cntl.nb_report_name,ASYNCHRONOUS, RUNTIME, FILESYSTEM,pl_id, NULL);"" but his does not work... nothing happens
    {code}
    PROCEDURE FPC_COPY_REPORT (p_report_name varchar2) IS
         repid REPORT_OBJECT;
         v_rep VARCHAR2(100);
         rep_status varchar2(20);
         lv_id varchar2(1000);
    BEGIN
    repid := find_report_object('AMTP_995.RDF');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
         if rep_status = 'FINISHED' then
         message('Report Completed'); message('Report Completed');
         else
              message('Error when running report.');           message('Error when running report.');
         end if;
    END;
    {code}
    Any Help

    actually My code is this:
    declare
         ln_alert          number;
         pl_id               ParamList;
         lv_report_name varchar2(10000);
         lv_path  varchar2 (100) := 'C:\';
         lv_shared_path  varchar2(1000);
         lv_copy_file varchar2(10000);
      cursor cr_dir_path IS
      select v_dir_path
      from md_directory
      where v_dir_code ='SHR';
      lv_file_name varchar2(1000);
    BEGIN
      open cr_dir_path;
      fetch cr_dir_path into lv_shared_path;
      close cr_dir_path;
    lv_report_name :=  lv_path||:fn_cntl.nb_ref_no||'_M08600000_'||to_char(sysdate,'YYYYMMDD-HHmmss')||'.pdf';
      if ffn_check_fields  THEN
         pl_id := Get_Parameter_List('LAI');
             IF NOT Id_Null(pl_id) THEN
                 Destroy_Parameter_List( pl_id );
              END IF;             
              pl_id := Create_Parameter_List('LAI');
           if :fn_cntl.nb_report_name ='MMAT_REPORT'
                then
                     if :fn_cntl.nb_report_desc ='EXPORT'
                          then
                         Add_Parameter(pl_id, 'PARAMFORM',TEXT_PARAMETER, 'NO');
             Add_Parameter(pl_id, 'DESTYPE',  TEXT_PARAMETER,'File');
            Add_Parameter(pl_id, 'DESNAME',  TEXT_PARAMETER, lv_report_name);
            Add_Parameter(pl_id, 'DESFORMAT',TEXT_PARAMETER,'PDF');
            Add_Parameter(pl_id, 'p_mat_no',TEXT_PARAMETER, :fn_cntl.nb_mat_no);   
            Add_Parameter(pl_id, 'p_ref_no',     TEXT_PARAMETER, :fn_cntl.nb_ref_no);
            Add_Parameter(pl_id, 'p_verified_by',TEXT_PARAMETER, user);
                     Run_Product(REPORTS,:fn_cntl.nb_report_name,ASYNCHRONOUS, RUNTIME, FILESYSTEM,pl_id, NULL);
          DECLARE     
               repid REPORT_OBJECT;     v_rep VARCHAR2(100);     rep_status varchar2(20);BEGIN
                         /* REP_OBJ= REPORT OBJECT CREATED UNDER REPORT NODE AT FORM */
             repid := find_report_object('MMAT_REPORT');      v_rep := RUN_REPORT_OBJECT(repid);
                        rep_status := REPORT_OBJECT_STATUS(v_rep);          
          if rep_status = 'FINISHED' then
              message('Report Completed');          message('Report Completed');
             --copy_report_object_output(v_rep,'c:\local.pdf');
             -- host('netscape c:\tlocal.pdf');     
         else          message('Error when running report.');
                                          message('Error when running report.');     
         end if;
                 END;
         end if;
      end if;
           if :fn_cntl.nb_report_desc ='EXPORT'
                then
                  error_handler('This report will be Storde in ' ||lv_report_name||' and '||lv_shared_path|| ' Location',3);
                     lv_copy_file :='copy '||' "'||lv_report_name||'" "'||lv_shared_path||'"';
                     host(lv_copy_file,no_screen);
                  error_handler('Report Has been Generated Sucessfully.',3);
           end if;
        end if;
    END;I will try first the another solution you have replied perviously... and will let you no the results... thanks a lot...

  • How to check the tables we have created in JDBC??

    I have created a table called COFFEE2 in a datasource called temp which is in SQL server...How to check the table values??
    i went into administrative tools and odbc cource then i could see the data source i have created but how to see the table??
    Can anyone help??
    thanx

    Hmm.. not sure that I understand the problem.
    Call getConnection on the DataSource, and then execute the select query on the connection.
    Kaj

  • How to check the form name in S_P00_07000134

    hi all,
    could you please tell me how to check the form name when get the print preview using T-code S_P00_07000134. i tried to active SE71, but when executing S_P00_07000134, click on print preview, it doesn't go to debugging.
    please help me with the issue, thanks a lot.
    regards,
    eric

    Have you looked in the IMG menu path: Financial Accounting > Financial Accounting Global Settings > Withholding Tax > (either Withholding Tax or Extended Withholding Tax) > Generic Withholding Tax Reporting > Define Output Groups.
    View the output group used in the S_P00_07000134 selection screen.  In the Printouts section, Printout 1 and Printout 2 have smart forms identified, either Smart Form or PDF form types.

  • How to check the records in Master Data Table?

    Hi,
       I am trying to load the Master Data Table using the Flat File.Now how to check the records in Master Data Table?
    I done the following way:
    Info Provider->Info Object->Right Click->Display Data or Maintain Master Data
    But it's not showing the records.It's asking like CID from......To......
                                                                        CID(SID)from.............To.......
                                                                         here CID means customer id(characteristic).
    and showing some settings.
    Please guide me.
    Thanks & Regards

    Hi Sri,
    Go to T- code RSD1 and type your info object name and open the P- table in the infoobject then select execute symbol to see the updated  data in to master data info object.
    regards
    sap

  • HELP !!! How to check the size of an object in Photoshop ?

    Hello,
    I'm using Photoshop CS 3 to design a website. I used several shapes such as rectangle, line or ellipse of different size. Probably it is a stupid question but I don't know how to check the size of an existing rectangle. I tried free transform tool that selects my rectangle but doesn't show its size. Then I made a selection with rectangular marquee tool but I see nowhere the size of the selected area.
    If you know the name of such a tool please help me !
    Have a nice day !

    Web images are all pixels. View at 100% at pixel view. that is your exact size

  • How to check the owner of any Object in the database.

    How to check the owner of any Object in the database.
    Thanks
    Himanshu

    What about this ?
    SELECT owner,Object_name,object_type FROM all_objects
    OR
    SELECT owner,Object_name,object_type FROM dba_objects

  • I am planning to take unlocked  iphone5 which is from USA, let me to know how to check the phone is valid ?

    i am planning to take unlocked  iphone5 which is from USA, let me to know how to check the phone is valid ?.How can i check is that properly unlocked, stolen and service.

    IF you can actually yet purchase an unlocked iPhone4 8GB from the US Retail stores is not clear
    They are certainly available from Apple.com but only if you have a US credit card and a US delivery address
    I suspect you do not fit this requirement
    You also have to be careful as the Apple Retail stores sell no contract iPhones these are NOT unlocked
    However if you are able to purchase an unlocked iPhone4 8GB then it will certainly work with the Approved carriers in India

  • Help! how to check the SQL run in Oracle?

    Hi all,
    I have a problem. the developer said the SQL written in Java code are not the one executed in Oracle DB. that mean the query is some how manipulated by some PL/SQL so the final query run in Oracle is different. So can someone teach me how to check the actual SQL run in Oracle?
    Thanks a lot.
    Regards,
    Jason

    Hi Michel Thanks. But it looks like the query stored in v$sqlarea is not the final executable SQL. for example, the code in application is "select column_A from default_table where column_A = ?" and this ? will be given some value in run time. the query stored in v$sqlarea will be like "select column_A from default_table where column_A = :1"... what is this :1?
    Also if some PL/SQL procedure appends some condition to the SQL, is it possible to view the full query from database side?
    ok, let me try trace and tkprof first.

  • Sap isu-cic(how to check the output)

    HI to all......
    In isu-cic  how to check the output,i have done all the assign ments like framewrk creation etc...i defined the organizational structure with assign hoder...after that wats the next steps?
    can anybody plz reply....
    Cheers..
    sateesh

    Hello satish
    Step 1:
    Create Framework Id( assign hidden & visible components)
    Step 2: Create CIC profile
    Step 3: create Org unit and assign person
    Step 4: Assign CIC profile to Org. unit (or) person
    Path : Easy access screen
              Logistics>Customer service>Customer Interaction center>Adminstration>CIC structure>Org.Structure(Change,T.code-PPOMW)>select Org. unit
    In this screen on the top i.e menu bar find Go To
    Go To>detail Object>Enchanced object description
    Now u r in Maintain object page(T code-PP01)
    Now in the Active tab page select CIC profile
    Now in menu bar Edit>create infotype
    Again u r in new page(T code-PP01)
    Enter the CIC profile Id which u have created in customizing
    Run T code- CIC0
    I hope u r able to see the screen now
    Rgds
    Madhusudhan

  • How to check Server availability status in jsf?

    how to check Server availability status in jsf ?

    Do "something" that would cause the server to respond; fetch a webpage, call a webservice, whatever. If it doesn't work the server isn't there, or is in a broken state.

Maybe you are looking for

  • Weird timing issues when playing back a recorded sound file and with synths

    Hello there, I'm having a couple of strange issues with playing back files that I have recorded using MIDI data which is then used to play an external synth which then gets recorded to an audio track which at the time is perfectly synced to a click t

  • Mac mini powers down suddenly

    My Mac mini often powers off suddenly. The log shows the following: configd[15] Sleep: Early Failure - AC com.apple.message.domain: com.apple.powermanagement.sleep com.apple.message.signature: Early Failure com.apple.message.result: Failure com.apple

  • 3.0EA1 is started very slowly.

    SQL Developers started very slowly. I install SQL Developer 3 (no JDK included) and I am using it. Now both SQL Developers – 2.1.1 and 3 are starting slowly. I tried to change JRE by Java Console with no result. Any other application has no such prob

  • Could not load desktop and screensaver preferences pane

    That is the message that I have been getting when I try to load this pane (and only this pane). This has been going on ever since I tried to change my desktop photo a couple of days ago. The desktop is now a blank blue, showing neither the old photo

  • Attach native data to an object

    Hi to all of you! I have the following problem: I want to create a class where each instance uses a corresponding native data block (for example, a C++ object). The problem is, can I somehow "attach" that native data to the java object so I have it r