[JS CS4] define a selection area

Hi all,
I have to isolate repetitive areas in documents of hundreds of pages. My intention is to select the items located in this area.
I wrote a while ago a script to find an item at xy location but this time, x & y will always be different and I can't imagine trying to catch items randomly until the script finds something.
So I thought that maybe I could mimic the selection arrow and drag a selection area from x1y1 to x2y2 to select what's inside that field. My first guess is that js is not enough to do that so I guess it's more c++ related but I am not even sure.
Does someone have any clue on that ?
TIA
Loic

Piece of cake, Loic.
selectInRectangle (app.activeWindow.activePage, 5,10, 120,100);
// Maybe x,y,wide,high would work better?
function selectInRectangle (source, x1,y1, x2,y2)
     var it;
     app.select(null);
     for (it=0; it<source.pageItems.length; it++)
     //     Only select all inside:
          if (source.pageItems[it].geometricBounds[0] >= y1 &&
               source.pageItems[it].geometricBounds[1] >= x1 &&
               source.pageItems[it].geometricBounds[2] <= y2 &&
               source.pageItems[it].geometricBounds[3] <= x2)
               source.pageItems[it].select (SelectionOptions.ADD_TO);

Similar Messages

  • Defining the 'selection area' around a button

    hi there,
    I'm making an interactive pdf from InDesign - buttons linking to other pages within the document.
    All fine so far - but when I make the pdf, the selection area (i.e. the area around the button that triggers the rollover effect) is too large - and as there are a lot of buttons close together it's easy to select 2 by mistake.
    I can edit the selection area (for want of a better description) boxes in Acrobat but wonder if there is a way to specify it in InDesign?
    thanks
    Sue

    thanks Steve.
    I seem to be  having trouble even achieving that now - when I use the handles of the bounding box in Acrobat (tools > interactive objects > select object) to try to resize it, it seems to move the graphic too. Is there anything obvious I'm doing wrong?
    many thanks again. Sue

  • Dimensions set to Selectable are not selectable w/in Smart View Data Forms

    When trying to use a data form by clicking "Select Form" in the Hyperion toolbar in Excel (not exporting from webspace), Dimensions that are defined as Selectable are not actually selectable within Smartview. Below is a portion of the script:
    BackgroundPOV=S#***.Y#***.w#***.V#***.I#***.C4#***
    SelectablePOVList=P{***}.E{***.[Base]}.C1{***.[Hierarchy]}
    Within the web, the form works fine and everything selectable is selectable. Within smart view, only Entity is selectable. Any insight would be greatly appreciated.
    SV Version 11.1.1.3.500
    HFM 11.1.1.3
    Excel 2007
    Edited by: JL on Aug 4, 2011 12:36 PM

    I have found this and its generally because the dimension is referenced in the column
    i.e Year and period is displayed in the column.
    In HFM you can select the members from the POV but when opening in SmartView you can't
    Solution is to remove the dimension from the col or row.
    Thanks
    G

  • How to use global variable defined in planning area in FOX

    Hi guys
    I meet a situation that needs to use variables defined in planning area in FOX.How to code?
    My situation as follows:
    Two variables are defined in planning area,one is zcomp_code,the other is zfiscyear.
    There are two key figures in the planning area,one is sales volume,the other is delta(%).
    I want to use sales volume multiplied by delta(%) in selected zcomp_code and zfiscyear by users.
    Anyone can help?
    Thanks in advance.

    Hi Eric
    check this example
    in fox you shoud declare your data and after call your variable
    after this you could easily operate on data using the f4 for definig the right fox operators
    DATA FYEAR TYPE 0FISCYEAR.
    FYEAR = VARV(PLANYEAR).
    {0COPANETRV, FYEAR,CRA,020} =
    {0COPANETRV,FYEAR,CRA,020} *
    ({ 0CP_DELTAB,FYEAR,CRA,020} + 100 ) /100.
    {0CP_DELTAB,FYEAR,CRA,020} = 0.

  • How to define manager's area of responsibility in SAP

    Hello All,
      I am not able to figure out where to define manager's area of responsibility and link the same to SAP user?
    My requirement is to display all the Orgunit and talent under a particular manager which should be attach4ed to SAP login user ID.
    I dont know if i need to have Portal contents too to defien the same.
    Right now i have ECC6 EHP4 system.
    Mani

    Hi Mani
    The managers user must be linked to an employee holding a chief position to determine the viewable employees
    Chief responsibilities can be maintained in PPOME 
    Positions can be assigned to PERNR via HIRE actions
    PERNR can be assigned to SAP user via infotype 0105 subtype 1
    In general in order to ensure the correct teams/employee information is available, selectable and outputted you should check OADP customizing in the MSS IMG
    Best regards
    Stuart

  • Is it possible to make changes on object selection area???

    Hi friends,
    I wanna ask a question about portal.
    When we connect to portal we choose corporate documents , there are files of departmants like hr, it, corporate general ...
    We want some changes in object selection area of these files. For example when we get into object selection area of IT there are objects like favorites, others, personel documents, common document, common documents.
    My question is
    Can we deduct or hide some of these objects from object selection area? If we can, how can we do it?
    Thanks
    Muzaffer Öz
    Edited by: Muzaffer Oz on Dec 2, 2011 9:31 AM
    Edited by: Muzaffer Oz on Dec 2, 2011 9:44 AM

    Hi,
    We can hide those options by implementing the Layoutsets. If you need to hide those options for standard admin user itself, then you need to change the standard Layoutsets, which is not recommended. These options are defined in the "Command Group" of the Layoutsets.
    You can Navigate to Layoutsets thru below path.
    Sys Admin -> System Configuration -> Knowledge Management ->Content Management -> User Interface -> Settings -> Layoutset
    Tweaking over the Layoutset Command group properties will hide the options which you mentioned.
    Thanks,
    Mahendran B.

  • Ship to party not defined for sales area x/y/z

    Hi Friends,
    While creating sales order I am getting following error---
    Ship to party not defined for sales area x/y/z .Please help to overcome this problem.
    xsales organisation  ; ydistribution channel ; z--division
    Regards

    Please go in Transaction XD01- Create Customer.
    then in Account Group, Select Sold to Party.
    Assign sales area , xsales organisation ; ydistribution channel ; z--division
    and check.
    Hope thiswill solve your problem

  • Where to find "Define field selection for Individual approval view" in ECC5

    Hi,
    I'm trying to find where I can configure the columns for the managers approval view in the backend in ECC5.
    Time sheet>Setting for all user interfaces>Approval procedure>Approve working times> Define field selection for Individual approval view, doesn't appear to exist.
    Any help appreciated.
    Rob

    Rob,
    Try this:
    IMG->Integration with Other mySAP.Com Components->Business Packages/Functional Packages->Manager Self-Service (mySAP ERP)->Working Time->Approve Working Time->Define Field Selection from Individual Approval View
    Alternatively use SM34 and go to view cluster VC_PT_FIELD_SELECTION and enter the screen area as CTS.
    Hope this helps. Good luck.
    Regards,
    Raj.

  • Creating multiple non-contiguous select areas

    Newbie to Photoshop here.  I'm using Photoshop CS4 and would like to use the Alien Skin boken add-in to create some artificial bokeh in some photographs.  To do that I'll need to create several different select areas within the same photograph to identify all of the areas that need the bokeh effect.
    Using the Quick Select tool I can easily create one area but then how to I create another area (not part of the first area) within the same photograph so that the bokeh affect can be applied to both selected areas?
    thanks in advance for any help!

    You use the tool with the middle (plus) option selected in the top bar.
    You would probably get a better result with the Color range tool but you would need to learn how to use it in Help.

  • Configure CA Wily Introscope - No connection user yet defined. Select one

    Hi,
    Can you please assist with this one.
    The basic configuration step is showing the following issue.
    "No connection user yet defined. Select one"
    Screen shot below. The next screen 3.1 also shows a similar error message.
    Regards
    Tariq

    Hi Tariq,
    It looks like the connection user for Wily EM in the solman_setup is missing.
    Please follow the steps below :
    Select a CA Wily Introscope Enterprise Manager.
    Choose the User Management button. A dialog box appears.
    Assign the user which is to be used to connect the CA Wily Introscope Enterprise Manager to SAP Solution Manager, For example : Admin
    Enter the password of the administration user.
    Choose OK.
    Make sure that the above settings are saved.
    Hope this helps.
    Thanks & Regards,
    Nisha

  • Where do we define a valuation area?

    Hello,
    what is the transaction used to define a valuation area?
    Thanks

    Hi,
    To define the Valuation level ,we define in the T code OX14.
    So ,in this we have two options either company code or plant.
    so if we have selected Plant as the valuation level.
    Automatically all the Plants created will becomes the valuation areas.
    Means all your valution hapens at plant level.
    hope so i am clear .
    Regards
    Anjanna.

  • I have 4 equal oblong shape created with borders How do I go about knowing what size the selection area is so that I can crop an image to fit. I don't want to use paste in then adjust the bounding box to suit

    I have 4 equal oblong shape created with borders How do I go about knowing what size the selection area is so that I can crop an image to fit. I don't want to use paste in then adjust the bounding box to suit

    What do you mean a moderator

  • CS4 or CS5.5 are interface iphone and andriod apps  ?

    CS4 or CS5.5 are interface iphone and andriod apps  ? How can i do when i make a new web site in DW with support and interface iphone and andriod apps . or we should learn HTML 5 or Wordpress for that ? Thanks !!

    Thanks Jeff - ya,sorry, I should've specified. I'm running Win 7 64-bit and I have Production Premium CS4 on the system now. Ideally I would deactivate and uninstall it before I load CS5.5 Production Premium.
    My only reasoning is to save on SSD space. Is there any reason to keep CS4 on the machine, other than possible problems with CS5.5?
    Thanks again for your reply Jeff.

  • Updated iPad 2 last night.  All movies (9) on my iPad can no longer be viewed.  The movie plays but the photos and scene selection are blank. How do I fix this

    Updated iPad 2 last night.  All movies (9) on my iPad can no longer be viewed.  The movie plays but the photos and scene selection are blank. How do I fix this

    Quit the app and restart the iPad.
    In order to quit or close apps - Go to the home screen first by tapping the home button. Quit/close open apps by double tapping the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner to close the apps. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Try the videos app again.

  • Sudden loss of print selected area in Photoshop 10.0.1?

    Between printing one image and printing the next I seem to have lost the ability to print a selected area in Photoshop 10.0.1. I am using this old program because the new Photoshop does not have that option. The box is now greyed out. Does any know why I could lose this, and what can I do to get it back? This is extremely important to my work method...
    Thank you.
    Mary Challinor

    Great news! "Print Selected Area" was restored in Photoshop CS6.
    Go to File > Print, scroll down in the dialog box that appears, et voila:

Maybe you are looking for

  • Error while uploading data in SAP (me01)using LSMW

    Hi All, I am using LSMW for the first time. I am trying to upload data to the Source List transaction (me01) using batch input recording. I created a new recording through LSMW itself. My source structure consists of 5 fields: <b>MATNR C(18) WERKS C(

  • OCR and oleautomation

    Folks, I've been unable to find a clear answer to a problem I'm having. I've been tasked with providing a conversion of our current application (a win32 executable) using an Acrobat 6 oleautomation object to one using an Acrobat 8 version. This conve

  • Pdf to Word conversion problems

    I just tried to convert a pdf (in Italian) to Word.  What came out was a page of senseless symbols.  I tried converting to doc, docx, and rtf, and nothing worked.  What to do?

  • Error from Microsoft Visual C++ while importing a Journal Voucher

    Hi Experts: We are requesting your Help because we getting the following error from  Microsoft Visual C++ Runtime Library while importing a  Journal Voucher throught DTW: Runtime Error! Program:  This application has requested the Runtime to terminat

  • Can't print to printer attached to Windows 7 machine

    When I send a document from my MacBook to the printer attached to my Windows 7 desktop, it shows up on the print queue as a document but lags and shows as "spooling". I have yet to get this to work. I successfully networked the computers together for