Export Tables from Pages to Numbers with AppleScript?

I've hit a stumbling block while trying to use AppleScript to remove a table from pages and paste it into Numbers.
I've found no way to directly identify the table in the document to copy for pasting into Numbers and I've been unable to remove the other information from the document to isolate the table for a select all command.
The easiest thing I can think of is a AppleScript to remove the first set of characters before the table or to explicitly extract tables only from the document.
I've tried all manners of AppleScripts and I can't seem to get it to work. None of the AppleScript text selection commands work to remove the information other than the table.

Try selecting the whole of the contents of the document and then running:
tell app "Pages"
selection
end tell
This will return a list of the selected objects, amongst which you should see something like: table 1 of body text of document id 15373020 of application "Pages"
With that data you should be able to select just that item:
select table 1 of body text of document id 15373020 of application "Pages"
Obviously that's just an example. If you were scripting this, you would most likely work through the list filtering only those objects you want to work with - the tables in this case.

Similar Messages

  • How can I copy and paste table cells from Pages into InDesign with minimum reformating?

    How can I copy and paste table cells from Pages into InDesign with minimum reformating?

    Do you mean you want to retain the formatting from Pages, or retain formatting already applied in ID?

  • TS3899 Whenever I send a email from iPad mail app with an attachment from pages or numbers, the receiver is getting only attachment in the email. They are getting the email content. How to troubleshoot this issue.

    Whenever I send a email from iPad mail app with an attachment from pages or numbers, the receiver is getting only attachment in the email. They are getting the email content. How to troubleshoot this issue.

    Someone is probably sending spam with your address forged on the To: line.  Could be one of your old contacts with a Windows machine has a virus that's doing it.  It's also possible your e-mail account has been hacked, though I'd think such a hacker would be a bit more purposeful.
    For more information, see:
    http://www.reedcorner.net/guides/macvirus/is_it_malware.php#spam
    * Disclaimer: links to my pages may give me compensation, and should not be taken as endorsement of my services by Apple.

  • Can I paste football table from Safari into Numbers by Dec 23?

    *Can I paste a table from Safari into Numbers - and get a table?*
    Whether I use Paste or Paste Match Style (?) it just goes into one column, which is useless. Same result in Pages. But in the Appleshop demo I copied the table from Safari into Excel and it created a proper table.
    Apologies if this is already answered. I am new to Mac and to iWorks. I've only got the evaluation version of iWorks v1.0. I was going to get the full version by Xmas - but this is a real showstopper. If I can't use the spreadsheet on web tables (price comparisons, stocks, etc etc) then iWorks won't do.
    If it can't do this, are there any other solutions out there? Thanks.
    *_Problem Description_*
    1. In Safari select and Copy a table (here's the football league table http://news.bbc.co.uk/sport1/hi/football/eng_prem/table/default.stm)
    2. Paste the table into Numbers - as a table (not as a single column)
    3. sort the table on descending GD

    Hello
    Some times ago, I posted a script for this kind of problem but I just discover (with your table) that I forgot a case.
    Here is a revised version which I will put soon on my iDisk.
    -- [SCRIPT Tables2Numbers_v5]
    property nbCols : "3"
    property english : true (* true= English messages, false = Messages Français *)
    property msg1 : ""
    property list1 : {}
    if msg1 = "" then my prepareMessages()
    set theDatas to (get the clipboard as text)
    if theDatas does not contain tab then
    set nbCols to text returned of (display dialog msg1 default answer nbCols)
    set nbCols to nbCols as integer
    set my list1 to paragraphs of theDatas
    set nb to count of my list1
    set nbRows to nb div nbCols
    set newDatas to ""
    repeat with i from 1 to nbRows
    repeat with j from 1 to nbCols - 1
    set newDatas to newDatas & (item (j + (i - 1) * nbCols) of my list1) & tab
    end repeat
    set newDatas to newDatas & (item (j + 1 + (i - 1) * nbCols) of my list1) & return
    end repeat
    set the clipboard to newDatas
    else
    set the clipboard to theDatas
    end if
    set my list1 to {}
    on prepareMessages()
    if english is true then
    set msg1 to "How many columns ?"
    else
    set msg1 to "Nombre de colonnes ?"
    end if
    end prepareMessages
    -- [/SCRIPT]
    If you grab your table in the clipboard after counting the columns (here 16)
    run the script
    After that you may paste the table in Numbers (or in AppleWorks)
    Yvan KOENIG (from FRANCE dimanche 2 décembre 2007 18:05:39)

  • Is it possible to export tables from diffrent schema using expdp?

    Hi,
    We can export tables from different schema using exp. Ex: exp user/pass file=sample.dmp log=sample.log tables=scott.dept,system.sales ...But
    Is it possible in expdp?
    Thanks in advance ..
    Thanks,

    Hi,
    you have to use "schemas=user1,user2 include=table:"in('table1,table2')" use parfileexpdp scott/tiger@db10g schemas=SCOTT include=TABLE:"IN ('EMP', 'DEPT')" directory=TEST_DIR dumpfile=SCOTT.dmp logfile=expdpSCOTT.log{quote}
    I am not able to perform it using parfile also.Using parfile it shows "UDE-00010: multiple job modes requested, schema and tables."
    When trying the below, i get error
    {code}
    bash-3.00$ expdp directory=EXP_DUMP dumpfile=test.dmp logfile=test.log SCHEMAS=(\'MM\',\'MMM\') include=TABLE:\"IN\(\'EA_EET_TMP\',\'WS_DT\'\)\"
    Export: Release 10.2.0.4.0 - 64bit Production on Friday, 15 October, 2010 18:34:32
    Copyright (c) 2003, 2007, Oracle. All rights reserved.
    Username: / as sysdba
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Starting "SYS"."SYS_EXPORT_SCHEMA_01": /******** AS SYSDBA directory=EXP_DUMP dumpfile=test.dmp logfile=test.log SCHEMAS=('MM','MMM') include=TABLE:"IN('EA_EET_TMP','WS_DT')"
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 0 KB
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    . . exported "MM"."EA_EET_TMP" 0 KB 0 rows
    ORA-39165: Schema MMM was not found.
    Master table "SYS"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
    Dump file set for SYS.SYS_EXPORT_SCHEMA_01 is:
    /export/home/nucleus/dump/test.dmp
    Job "SYS"."SYS_EXPORT_SCHEMA_01" completed with 1 error(s) at 18:35:19
    {code}
    When checking expdp help=y shows :-
    {code}TABLES Identifies a list of tables to export - one schema only.{code}
    As per few testing,tables from different schemas are not possible to export using expdp in a single command.
    Anand

  • Importing from pages or numbers

    Is it possible to import files to keynote from pages or numbers. I am working on a safety presentation that uses spreadsheets, photos and graphics (lines, arrows, comments in text boxes etc) I would like to be able to present this as a keynote or powerpoint type presentation. I thought this was possible but nothing is working.

    I have documents and spreadsheets with photos dragged from iphoto that I have been wanting to use as a keynote type demo. I was trying to drag or copy from pages and numbers as well as word and excel for mac. Saving as pdf files allows me to drag over to a keynote slide and works. It just does not allow me to alter the document during the demo (adjust numbers in the spreadsheet or move arrows on the arial photos of the pages doc etc. )
    Thanks for the help, was just temorarily brain dead.

  • Is there a way to Export text from Pages 09 to Keynote 09 Slides?

    I wanted to make an outline for a presentation in Pages 09 and then export it to Keynote 09 as slide text. But did not want to have to copy it piece by piece. I know you can do this with Word, but I would rather do stuff like this in Pages and Keynote.
    Thanks!

    There isn't any export feature from Pages to Keynote. Have you tried Copy and Paste?

  • Is there a way to export text from Pages 09 to Slides on Keynote 09?

    I wanted to make an outline for a presentation in Pages 09 and then export it to Keynote 09 as slide text. But did not want to have to copy it piece by piece. I know you can do this with Word, but I would rather do stuff like this in Pages and Keynote.
    Thanks!

    There isn't any export feature from Pages to Keynote. Have you tried Copy and Paste?

  • Export data from BW to oralce with open hub service.

    Hi Dear all,
    When I tried to export data from BW to oralce with open hub service. There is no available RFC destination for this oracle system. That means i need to create a RFC destination for the oracle server.
    How can i achive this, in SM59? But U don't know much how to configure this. Is there any expert can help me there?
    Kevin

    Hi kevinhuang  ,
    RFC connection.......... You can check in SM59 tcode...Double click on the the desired Source system
    or
    RSA1-->Source systems and then right click on Source system and Check
    To test RFC connection...RSA1 ....Source system....... Right click on desired source system >> Connection Parameter.....Test connection
    Pls go thru this links,
    http://help.sap.com/saphelp_nw70/helpdata/EN/43/79f902dfb06fc9e10000000a1553f6/frameset.htm
    BI Open Hub Destination and data transfer process setup
    http://www.ibm.com/developerworks/data/library/techarticle/dm-0802li/index.html
    Hope this helps U.
    Regards
    Chandra Sekhar
    Edited by: Chandra  Sekhar T on Apr 21, 2009 3:36 PM

  • Exporting Table from Indesign to tagged text.

    Hi, all!<br />I need to export table from InDesign to tagged text by the script.<br />I found ExportAllStories.jsx in samples.<br />It's good example but I have some questions<br />1. In my document more then one table and I need to export only some of them. So, how can I export only one of them? May be Tables have some "labels" or something other differential sign?<br />2. How can I ser encoding type of distanation file (by the default InDesing set <ASCII-WIN>, but I'm need to set <Unicode>).

    Edit>InCopy>Export All Strories.
    Open the INDD in InCopy.
    This assumes everyone involved has access to the files.

  • Passwords removed from Pages and Numbers when opened in iOS

    I'm I missing something or is it expected that passwords will be removed from Pages and Numbers files once they are opened in iOS?
    gbs

    Or at least not perserved.
    Do we know if iOS 6 will perserve the passwords from a desktop doc?

  • How to export tables from development server to production server

    HI,
    Any body plz let me know how to export tables from development server to production server. what are the user names and password i need to ask my manager to do that. what are the requirements i need to ask him.
    Plz reply me ASAP.
    Thanks in advance.

    hi buddy
    first of all you should let us know the environment of production and development servers
    database versions
    and you need to have userid which has privilege to export tables of other schema. userid(owner) of the tables you want to export.
    Traditional way
    export tables in development server and then ftp to production and then import
    in the above case you should have similar database structure(tablespace etc) to avoid errors...
    if there are few tables only , you can use dblink instead of export and import...

  • How to export MPEG2 from DVD Studio Pro with subtitles?

    Does anyone know how to export MPEG2 from DVD Studio Pro with subtitles?

    You cant do that...
    We might be able to help you more if you are trying to do something specific,
    -Jake

  • Copying Tables from Safari to Numbers

    I am attempting to copy simple tables from Safari (web sites) and paste them into iWork 08 Numbers. When I copy a table with multiple columns and rows, it pastes into Numbers as a single column. For example, if there are five (5) columns on the web site table, the values in the first row of this table are pasted into the first five (5) rows in numbers. The second row from the table follows in rows 6-10 on Numbers. And so on.
    I moved to my PC and tried to copy the same web site table into MS Excel, and it pastes perfectly. So what is it with Numbers that I need to change to ensure the pasting matches the original table?
    Thanks in advance for the help!
    Scott

    The problem is with Safari, not Numbers. Safari just doesn't "understand" tables in web pages & puts lots of spaces and/or returns instead of the needed tabs. I long since gave up & use Camino or FireFox for copying the tables to Numbers or any other program I want the data separated by tabs. There are some web sites, Discover Card is one, that appear to have tables but the data doesn't copy as such.

  • Create a table in SQL Server, Export tables from Microsoft Excel to Microsoft SQL Server, Populate the created table

    Hello team,
    I have a project that I need to do, what is the best approach for each step?
    1- I have to create a table in Microsoft SQL Server.
    2- I have to import data/ tables from Microsoft Excel or Access to Microsoft SQL Server. Should I use Microsoft Visual Studio to move data from Excel or Access?
    3-I should populate the created table with the data from the exported data.
    4-How should I add the second and third imported table to the first table? Should I use union query?
    After I learn these, I will bring up the code to make sure what I do is right.
    Thanks for all,
    Guity
    GGGGGNNNNN

    Hello Naomi,
    I have imported all the tables into SQL Server,
    I created a table:
    CREATE
    TABLE dbo.Orders
    Now I want to populate this table with the values from imported tables, will this code take care of this task?
    INSERT INTO dbo.Orders(OrderId, OrderDate)
    SELECT OrderId, OrderDate
    FROM Sales.Orders
    UNION
    SELECT OrderId, OrderDate
    FROM Sales.Orders1
    Union
    SELECT OrderId, OrderDate
    FROM Sales.Orders2
    If not, what is the code?
    Please advise me.
    GGGGGNNNNN
    GGGGGNNNNN

Maybe you are looking for