Applescript. Select cell range and copy to clipboard

Hi everyone,
I have been looking at trying to select a range of cells, eg B1 to H40, once selected I would like to copy the selection to the clipboard.
I am having difficulty selecting a range of cells...
any help would be very much appreciated.
Many thanks
Phelix

Prepend my original suggestion to Jerry's and you have what you want:
Make the Summary table reference only that data you want in your summary:
select the table
<JERRY'S SUGGESTION>
Command-C (Copy)
Switch to Preview
Command-N (New document from Clipboard)
Command-S (Save)
</JERRY'S SUGGESTION>
another way to to place the summary table in another sheet.  Then you can just print that sheet to PDF by selecting the sheet, then select the menu item "File > Print…", then the option in the "PDF" menu at the bottom right:

Similar Messages

  • Java app to save html source and copy to clipboard

    I'm new to Java, and I'm doing a research paper which requires gathering data from the internet. I basically need to learn commands to create an app (which I will execute on a daily basis using Windows scheduler) to do the following task:
    1. Access a specific URL
    2. Save the HTML source as a text file
    3. Copy some of the text in the saved text file to the clipboard in Windows
    4. Paste this data in Excel
    5. Run a macro in Excel to sort the data
    I know enough VBA and Excel functions to parce the data, but if it is easier to use Java to sort the data into columns and rows in Excel, I would like to learn how to do that too.
    I'm running Windows XP. My friend tells me to download Dr. Java to edit .java files and also the SDK to compile the files. He also told me to find modules from the internet which I can use, but I'm not sure how to go about it. (I tried searching on the net but didn't get the hits I wanted.)
    Any help at this point would be much appreciated.

    If your target html is so fancy and complicated(table cell contain another table) or the table miss some <tr> or <td> tags, dividing the table into rows and column can be a difficult task.
    I recommend you choose the website with high download speed. Otherwise, you have to write more code to handle any loading failure.
    I recommend you use httpunit to get webpage with Java program. (There is usually proxy server in University, you can config the parameter for proxy server in the Java program calling httpunit)
    http://httpunit.sourceforge.net/
    It will take some times to learn those Java technique.

  • Need help on OLE excel paste in selected cell range

    Hi Friends,
    I need to paste the clipbord contents in a selected range of cells using ole automation.
    Rage is selected using the following code :
    CALL METHOD OF G_EXCEL 'Cells' = G_CELL1
        EXPORTING #1 = 4
        #2 = 1.
      CALL METHOD OF G_EXCEL 'Cells' = G_CELL2
        EXPORTING #1 = P_ROW
        #2 = gv_col.
      CALL METHOD OF G_EXCEL 'Range' = G_CELLRANGE
        EXPORTING #1 = G_CELL1
        #2 = G_CELL2.
    now need to past the clipbord contents in G_CELLRANGE.
    Would appriciate your help,
    Thanks,
    John

    Hi Jhon,
    this is the obsolete old way even Rich would not recommend (look at the age of the blog).
    There are far better and much more performat ways doing this using Desktop Office Integration.
    Refer to this complete documentation of [Desktop Office Integration (BC-CI)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIOFFI/BCCIOFFI.pdf]
    It took me some time to create my first application with DOI, but if you have done you will never want to miss it.
    Regards,
    Clemens

  • Photoshop Applescript, select a layer and fill?

    How do I select a layer than I have named "BACKGROUND"
    Then fill with White,
    then select layer "Main Image"
    within Photoshop?
    Many Thanks
    Matt

    Hi,
    Here is an example :
    tell application "Adobe Photoshop CS5"
          tell current document
                deselect -- deselect all in the document
                set current layer to layer "BACKGROUND" -- select
                tell current layer to if not visible then set visible to true -- must be visible to fill
                --- fill the current layer with White , adjust (blend mode, opacity and preserving transparency)
                fill selection with contents {class:RGB color, red:255, green:255, blue:255} blend mode normal opacity 100 without preserving transparency
                set current layer to layer "Main Image" -- select
          end tell
    end tell

  • Single Cell Copy to Cell Range

    If I create a cell value/formula, then copy that cell, select a range of cells, and paste, in Excel it copies the source cell contents to all cells in the range (adjusting relative references in a formula). In Numbers, it copies only to one cell in the range. Having to paste one cell at a time is agonizing, and this operation is something I do all the time in editing an existing spreadsheet.
    The only alternative I see is to copy one cell to two, then select a two-cell range to copy and paste etc in geometric progression. Is there something simple I'm missing?

    I did a search in the help for "fill" & got this:
    Here are ways to autofill table cells:
    To paste the content and fill of a cell into adjacent cells, select the cell and then drag the Fill handle in its lower right corner over the cells into which you want to paste. You can drag to the right to add values to adjacent cells in the same row, or you can drag down to add values to adjacent cells in the same column.
    Any data, cell format, formula, or fill associated with the selected cell is pasted, but comments aren’t pasted.
    If the selected cell contains no data, autofilling clears data from target cells.
    You can also add values to cells based on value patterns. For example, if a cell contains a day of the week or a month, you can select the cell and then drag to the right or down to add the next day of the week or month to the adjacent cell.
    To create new values based on numeric patterns, select two or more cells before dragging. For example, if two selected cells contain 1 and 2, the values 3 and 4 are added when you drag through the adjacent two cells. And if two selected cells contain 1 and 4, the values 7 and 10 are added when you drag through the adjacent two cells (values are incremented by 3).
    This is similar to how I've done fill down or fill right in AppleWorks, so I think the relative references would copy.

  • Vim - copy to clipboard without mouse and paste to other application

    I can copy & paste in editor vim.. andI know copying with mouse.. how to set vim to select all lines and copy them without mouse and paste it to other application like leafpad with Ctrl+V or with "paste" in options? it is possible in vim?
    Last edited by xhc (2012-05-26 18:10:31)

    Parecelite etc. isn't needed for that...
    You have the choise of using either primary selection or clipboard...
    For primary selection, you use vim's visual mode to mark text(not yank it, just mark), and then in whatever other app paste primary selection with 'shift+ins'.
    For clipboard, you need e.g. the gvim package from the arch repo's, which includes a vim with clipboard support enabled, and then you mark the text and then copy it to clipboard with '"+y', that is 'double-quote+plus+y' and then paste in whatever clipboard capable app with ussually ctrl+v.
    Finally, you can configure vim to always yank to clipboard(in addition to primary-selection), so you can mark text, press y, and then ctrl+v in whatever clipboard capable app afterwards; to do that add 'set clipboard=unnamedplus' to your .vimrc. (note, vim clears whatever it self has placed in the clipboard whenever quiting vim, so keep vim open after you have copied from it and untill after you've pasted from it...)
    Edit: Beaten by kniren for some of the info
    Edit2: Using Primary selection with x11 apps also needs either vim from the gvim package, or a custom built one...
    Last edited by mhertz (2012-05-26 19:21:08)

  • Select Date between range and display

    Hello - i need some ideas to the following:
    I need to create a form to submit some information, with the
    date that form was submitted, to a database using php.
    Once the form is submitted i need to retrieve multiple rows
    from the database based on a selected date range, and display the
    information
    Question one - any ideas on the flow that i need
    question two - how do you think that i best record the date -
    given that i need to select a range later.
    question three - how do I select mutiple rows give a range of
    dates
    Thanks

    Hello - i need some ideas to the following:
    I need to create a form to submit some information, with the
    date that form was submitted, to a database using php.
    Once the form is submitted i need to retrieve multiple rows
    from the database based on a selected date range, and display the
    information
    Question one - any ideas on the flow that i need
    question two - how do you think that i best record the date -
    given that i need to select a range later.
    question three - how do I select mutiple rows give a range of
    dates
    Thanks

  • Selecting Multiple Images to Copy - Fragmented Image

    Hello!
    I made a pdf out of a powerpoint presentation on a friend's windows computer. I am now trying to extract an image that I lost while editing on my computer. The problem I have run into is that the image was fragmented into multiple pieces in the PDF (1 image is now 3 parts). I cannot seem to select all of the images and do "copy images" as you can with one part.
    I can select all the pieces with the touchup object tool and edit them in illustrator and then manipulate them but this is very much the long way around.
    Since I have to do this with many graphics, I am trying not to take the long route. Is there a way to select multiple images and copy them? Or is there a way to select everything with the touchup object tool and just copy it to the clipboard?
    Any thoughts?
    -Mike

    I am also running into this issue. I happens in PDFs coming from all programs that our clients use to produce the PDFs. InDesign, Publisher, Word, WordPerfect.
    My question is: back in CS3 days, I could select all the images (one image that broke into any number of horizontal sections) with the TouchUp tool and select>edit objects...They would all open as one image in photoshop, I could do my edits, save and then replace what I had on the PDF with the new saved file (jpg or pdf or tiff).
    We upgraded to CS5 and now I can't do that anymore. I go into my PDF, select all parts of the image and then edit, but only the first part I selected is editable. I would like to say that it's a CS5 issue, but we had one machine, back when we all had CS3, that would do the same (not edit all the parts as one). I'm thinking it's some sort of preference or combination of preferences in both Acrobat and Photoshop, but I can't figure it out.
    I know one runaround is the "Snapshot Tool," but it was much better before when we could edit what we needed and that's it.
    Thank you for your attention,
    Leonardo Pedreros
    P.S.: Please don't judge me about Illustrator VS. Photoshop...they REFUSE to give us Illustrator at work, for some reason ($$$). If only they knew the amount of time and file size that Illustrator saves, they'd invest in 5 measly licenses.

  • Select- Color Range- Results in Blue Screen (PC)  (driver out of date)

    I've been using the CS6 beta about two days.  While experimenting with color range I experienced two consecutive blue screen crashes.  The first time it happened,I was working with the color range selector and was replacing the selected areas with another color using the paint bucket.  About the third time I attempted this, my PC blue screened.  The second time, I opened a photo, went to Select>Color Range and got an immediate blue screen crash.
    I then went back to CS5 and I've been playing with the same scenario with no apparent problems.
    My PC is a store built computer.  It consists of an MSI 990-FXA GD80 motherboard, an AMD Phenom 1100t CPU, Asus GTX550 Ti graphics card and 8 gig of RAM.  It boots from a 60 gig SSD and my programs reside on a 500 gig hard drive.  The OS is Windows 7 Professional 64 bit.  CS6 is using the hard drive for its scratch disk and Photoshop is using 4339 mb of the 7232 mb of available RAM - I haven't changed that.  I'm running CS6 as administrator because the way it installed, it would only run in that fashion.
    One disappointment during the installation was CS6 made no attempt to read my preferences from the CS5 install.  That may be covered in another post, I've not yet looked.
    Please keep us informed as new betas are released, because I would like some time to work with this puppy before plunking down big bux for the upgrade.  As it is now, I'm going back to CS5.  I get mighty nervous when my super computer blue screens!
    Gerry
    gswetsky AT bellsouth DOT net

    The GPU is often at root of issues like yours. I've had so many problems with Nvidia drivers for their gaming-oriented adapters (like yours) that I finally went with one of their workstation cards. I have a Quadro card with just enough RAM to make Photoshop happy. The workstation drivers are optimized for reliability, the consumer card drivers are optimized for gaming and that often means they're less stable and reliable with Photoshop.

  • Trouble printing selected page range as handout

    I am trying to print for a keynote but only want a selected page range and just cannot seem to get it to work. When I go into print and select under the pages tab the "from" button and type the range ( eg 184-189 ) I only get the option of slides with notes or outline. I want to pront as a handout with 2 or 3 sldes per page. The preview shows no pages selectde and it is unable to print.
    I've tried highlighting the slides I wish to print and trying that but to no avail. The silly thing is I did manage to get it to work this way once but now it doesn't seem to work that way. I'm frustrated as I don't want to print the whole presentation off and throw away the sheets I don't need as it seems to defeat the object of page selection. I also don't want to watse ink by having one slide per page.
    Any help will be gratefully received.

    I have this issue with my printer also
    my work around is to delete the pages I dont want printed, save this version as a separate file and the pages I want print out correctly.

  • Selection, Color Correction and Blending

    How do I make a selection of ALL the yellow on the Meatball building and make it a deeper yellow the way it has been done in the attached photographs:
    BEFORE
    AFTER
    Someone suggested playing with the Color Range: Select/Color Range and then use the lasso tool plus the option button to delete what you don't need. But that's not working for me. Any other suggestions?
    And in the next photo, what is/how do you achieve the blended effect on the area that is the where you would more obviously see that this is made-up of two photos? It's a blending mode right? Which one?
    Thanks!

    The answer in both cases is it come down to masking.  Masking is nothing more then a selection and the selection can have both hard and soft edges to help layer blend better. Blending modes and bend if setting can also help with colors.  I'll do a little example with your first image since you did not post both layers for the second image.
    You need a good selection of the store not perfect.  I started by using select Color range to get a starting point selection. Then I switched to the quick selection brush to improve the selection. Remember when using the quick selection brush you need to use the two modifier keys Shift and Alt.  Shift to Add to the selection and Alt to remove from selection.  I then saver the selection and then fathered the selection 1 pixel and saved it again.  With the feathered selection active I added a hue and saturation adjustment layer. The selection was added into the layer masked added. Adjusting the layer effect only the store because of this.  You can adjust the layer using opacity, fill, blend modes and blend if as well as using the adjustment layers sliders and check box.  I also activated the selection so you can see the marching ants to get some idea of the selected area. To change the color I checked the colorize checkbox in the adjustment properties and mover the sliders. You can color the store just about any color you want. http://www.mouseprints.net/old/dpr/3-storefront_web.psd

  • Select page range

    Hi,
    How to select page range and run our functions with the particular pages?
    Selva

    Hello Hopkins,
    I just wanted to tell you, your code is gorgeous! And your very talented!
    Everything you create is just an absolute joy to look at. Especially the page range function.
    Thanks for your understanding for what me want.
    Selva
    Here my changes (for your review):
    try {
        //assumes document is open
        var docRef = app.documents.item(0);
        var maxPages = docRef.pages.count();
      //provide variable to hold user's response
      var userResponse = dialogWChoices ("Dialog Name", true, "Label here", maxPages);
        //enter call to function that processes all pages
        if (userResponse[0] == 0) {
            myProcess (docRef, 0, maxPages);
         } else {
             var minPageRef = userResponse[1] - 1;
             var maxPageRef = userResponse[2] - 1;
             myProcess (docRef, minPageRef, maxPageRef);
    } catch (e) {
    alert ("Process Done!\rWith the selected pages.");
    //function to process range of pages
    function myProcess (docRef, minPageRef, maxPageRef) {
        var thisPage, thisFrame, docOffset;
        //our code start from here
        var myStep = 1; 
       for (var i = minPageRef; i <= maxPageRef; i++) {
           thisPage = docRef.pages.item(i);
           var myTables = thisPage.textFrames[0].tables.everyItem().getElements();
           for (j =0; j<myTables.length; j++){
               if(myTables[j].spaceAfter  + myStep<0){myTables[j].spaceAfter = 0; continue};
               myTables[j].spaceAfter = myTables[j].spaceAfter + myStep;
              } //end our code
    //function gets page range or "all" from user
    function dialogWChoices (dlgName, cancelIt, dLabel, maxPages) {
        var userCancelled = false;
        var origValue = app.scriptPreferences.userInteractionLevel;
      //make sure that user interaction levels will allow a dialog
      app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
      //create the dialog
      var dlgRef = app.dialogs.add({name:dlgName, canCel:cancelIt, label:dLabel});
      //add a column
      var dlgColumn1 = dlgRef.dialogColumns.add();
        var dlgColumn2 = dlgRef.dialogColumns.add();
        var dlgColumn3 = dlgRef.dialogColumns.add();
      //add widgets for first column
      dlgColumn1.staticTexts.add({staticLabel: "PageRange:"});
      //add widgets to second column
      var radioGroup = dlgColumn2.radiobuttonGroups.add();
        radioGroup.radiobuttonControls.add({staticLabel:"All", checkedState:true});
        radioGroup.radiobuttonControls.add({staticLabel:"Range", checkedState:true});
        //add widgets to third column; put reference into a variable
        var emptyRow = dlgColumn3.dialogRows.add();
        emptyRow.staticTexts.add ({staticLabel: ""});
        var inputRow = dlgColumn3.dialogRows.add();
        var firstField = inputRow.integerEditboxes.add({minWidth:36, minimumValue:1,maximumValue:maxPages});
        inputRow.staticTexts.add ({staticLabel: " thru "});
        var secondField = inputRow.integerEditboxes.add({minWidth:36, minimumValue:1, maximumValue:maxPages});
      //show the dialog and capture the result
      if (dlgRef.show() == true) {
            var firstVal = 0;
            var secondVal = 0;
            var selButton = radioGroup.selectedButton;
            if (selButton == 1) {
      var firstVal = firstField.editValue;
      var secondVal = secondField.editValue;
      } else {
            userCancelled = true;
           dlgRef.destroy();
           app.scriptPreferences.userInteractionLevel = origValue;
        if (userCancelled) {
           throw ("User Cancelled");
      //destroy the dialog; script doesn't get here if user cancels
      return [selButton, firstVal, secondVal];

  • Selecting Whites, Blacks and Mids A Question

    Hello,
    I know if you Control Click on the RGB channel in the channels palette that
    you basic select all of the whites in the image. Is there any way to do this
    for the blacks and mid-tones? If no, does any one know of a way to do this
    (plug-in, etc.)?
    Thanks,
    John

    John,
    No but you but you can use Select>Color range and then instead of Sampled colors use Midtones or Blacks from the dropdown list.
    Not sure if that is what you want because Control clicking the RGB channel is not quite the same as selecting the whites of the image...
    Ronald

  • ADF 11g can not select and copy data from cell of readonly table in IE

    hi,
    In ADF 11g, when render view object as readonly table with Single RowsSelection, using IE browser can not select and copy data from the cell, but it work in firefox.
    is it a bug?
    Edited by: kent2066 on 2009-5-18 上午8:46

    Hi Timo,
    Sorry forgot to mention versions.
    We are using 11.1.1.7 and IE 9.
    I tried in Google but could not get the solution.
    Kindly let me know solution for this.
    PavanKumar

  • Select a range of cells?

    How do I select a range of cells to, say, copy and paste? In Excel I highlighted the cell and at the bottom right corner I clicked on a dark cross and dragged it to the last cell I wanted to highlight. How do I do this in Numbers.? I am in the process of convertin MS Word and Excel files to Pages and Numbers. All comments welcome.

    j.,
    From the Numbers Help Menu, choose Numbers User Guide and download it.
    Jerry

Maybe you are looking for