Applescript: Make iCal entry from Numbers spreadsheet

I use a spreadsheet to book all my photography shoots. The columns (name, phone, email, job date, job time, job address, job city, services, notes) are inputted each time a client calls to book a shoot.Once they are booked, I create a new iCal entry for the "job date" with the title name being a slimmed down version of the services (ie, the client might have wanted photos, virtual tours, and prints, but for on site work, given that I will not be printing anything, I leave out the print from the title). So the final title might look like this: "photos, virtual tours @ 3pm". I also add the full address including the city into the iCal "location" field (just below the title field). Then I'll make sure that the date and time correspond to the spreadsheet. Next, I'll set it to a calendar I have made for these bookings. Finally, I'll add the services and notes to the "note" field at the very bottom of the iCal entry. Then click DONE.
Can someone help me write a simple script that would read a preselected row in the numbers spreadsheet and, once initiated, would create a new iCal entry? Thank you.

Thanks John. Yes, so I edited it a bit and made a few minor changes (basically adding some info to the notes section in the iCal entry). I've posted the code below. A couple minor tweaks would make this perfect: First, I'd prefer to simply selected one of the cells on a given row and then run the script--at that point the script would know to copy that entire row. I know this is possible because I have a script that does this... I'm just not sure how to integrate that part of the script with yours. I've posted the script below yours.
Second, I'd like iCal to open the newly added entry so I can have a quick review of it. Currently there's no indication that it's been added and, which iCal does appear to initiate (if it was closed down), it does however remain in the background.
Your script (with some mods):
set myCal to "TEST" -- calendar name
set myLength to 2 -- hours
set myItems to my cjmTIDs(the clipboard, tab)
if (count of myItems) is less than 12 then return
set jobDate to date (item 4 of myItems)
set timeArray to my numberFromHourText(item 5 of myItems)
set hours of jobDate to (item 1 of timeArray)
set minutes of jobDate to (item 2 of timeArray)
set jobEnd to jobDate + (myLength * hours)
set myTitle to (item 1 of my cjmTIDs((item 11 of myItems), "prints"))
set myNotes to "Client: " & (item 1 of myItems) & return & return & "Tel: " & (item 2 of myItems) & return & return & "Services: " & (item 11 of myItems) & return & return & "Notes: " & (item 12 of myItems)
set myURL to (item 3 of myItems)
set theAddress to (item 6 of myItems) & ", " & (item 7 of myItems) & ", " & (item 8 of myItems)
tell application "iCal"
          set myNewEvent to make new event at the end of events of calendar myCal with properties {start date:jobDate, end date:jobEnd, summary:myTitle, location:theAddress, url:myURL, description:myNotes}
end tell
on cjmTIDs(theText, theDelim)
          set my text item delimiters to theDelim
          set myList to text items of theText
          set my text item delimiters to {""}
          return myList
end cjmTIDs
on numberFromHourText(theText)
          set theParts to my cjmTIDs(theText, ":")
          if (count of theParts) is 2 then
                    set myHours to item 1 of theParts as number
                    set myMins to ((characters 1 thru -4 of item 2 of theParts) as text) as number
          else
                    set myHours to ((characters 1 thru -4 of theText) as text) as number
                    set myMins to 0
          end if
          if character -2 of theText is "p" then set myHours to myHours + 12
          return {myHours, myMins}
end numberFromHourText
The other script that I mentioned (the one that knows to copy the entire row by just selecting a cell):
set theTemplate to POSIX file "/Users/Peter/Library/Application Support/iWork/Numbers/Templates/My Templates/TEST.nmbtemplate"
tell application "Numbers 09"
          tell table 1 of sheet 1 of front document
                    set theValues to value of cells of row 1 of selection range
          end tell
  open theTemplate
          tell table 1 of sheet 1 of front document
                    set value of cell "A1" to item 1 of theValues
                    set value of cell "A2" to item 2 of theValues
                    set value of cell "A3" to item 3 of theValues
          end tell
          tell table 2 of sheet 1 of front document
                    set value of cell "B1" to item 6 of theValues
                    set value of cell "B2" to item 7 of theValues
                    set value of cell "B3" to item 4 of theValues
                    set value of cell "B4" to item 11 of theValues
                    set value of cell "D1" to item 38 of theValues
          end tell
          tell table 3 of sheet 1 of front document
                    set value of cell "A2" to item 11 of theValues
                    set value of cell "B2" to item 13 of theValues
          end tell
          tell table 5 of sheet 1 of front document
                    set value of cell "B2" to item 34 of theValues
                    set value of cell "B3" to item 14 of theValues
          end tell
          tell table 7 of sheet 1 of front document
                    set value of cell "B3" to item 30 of theValues
          end tell
          set R to display dialog "Save a PDF version of the invoice?" buttons {"No", "Yes"} default button 2 with icon 1
          if button returned of R is "Yes" then -- GUI Scripting:
                    tell application "System Events" to tell process "Numbers"
  click menu item "Print…" of menu 1 of menu bar item "File" of menu bar 1
                              set theWindowName to name of window 1 whose subrole is "AXStandardWindow"
                              tell sheet 1 of window theWindowName
                                        if value of checkbox -1 is 0 then click checkbox -1 -- to show all the settings
                                        set value of text field 3 to "1" -- number of copies = 1
  click radio button "From:" of radio group 2 -- button “From:”
                                        set value of text field 2 to "1" -- from page 1
                                        set value of text field 1 to "1" -- to page 1
  click radio button 2 of radio group 1 -- current sheet
                                        if value of checkbox 2 is 1 then click checkbox 2 -- to not include a list of all formulas
  click menu button "PDF"
                                        click menu item "Save as PDF…" of menu 1 of menu button "PDF"
                              end tell
  keystroke "Invoice" -- document name
  keystroke "d" using command down -- save to desktop
                              set value of text field 3 of group 1 of window 1 to "Invoice" -- title
                              set value of text field 4 of group 1 of window 1 to "Stone Home Photo & Video" -- author
                              tell window "Save"
                                        click button "Save"
                                        if sheet 1 exists then click button "Replace" of sheet 1
                              end tell
                    end tell
          end if
  close front document saving yes
end tell

Similar Messages

  • Is it possible to print a note from numbers spreadsheet

    Hi I hope someone can help. Is it possible to print a note from numbers spreadsheet. Or is there any way I can type a ticket that I can print but that will automatically transfer the data to a spreadsheet in numbers?

    How about the opposite direction. You have a table with a "key" field, like a ticket #.
    You make another sheet that you type in the ticket number and it pulls up the proper data in the proper location for you to print. Just a print tempalte that fills out for the ticket already entered into the data table.
    Jason

  • Export ical entries into numbers

    I would like to export my Ical entries into numbers. 

    pbm,
    welcome to Apple Discussions.
    No, you cannot export to Pages. Even if you open the HTML file exported to a folder, you get different "layers" (background, text, images) on separate pages in Pages.
    (Why do you want to edit the content in Pages and not in iWeb?)
    To print as document, you could just print it from Safari.

  • Can't Edit iCal entry from Invitation

    Okay, I run the calendar at work (Outlook 2003) but I also like to keep my own copy on iCal (because I like it better). I have been manually copying meetings so far but I decided to send myself invitations from my work Outlook calendar to my iCal (should have been less typing). I was able to get it to my work iCal (after reordering my list of calendars) and accept it. However, I cannot edit it in any way. I assume if I changed something on my work calendar and had it send the change to my mac email I would be able to click on it and it would change the entry on my iCal. But since I am the master of both my calendars I should be able to make it editable. Shouldn't I?
    And no, I don't want to synch Outlook to Google to iCal.
    Any help is appreciated. Thanks, AndyB, NH.

    I've had the SAME problem..noticed it started after a software update

  • Copy Email addresses to address book from numbers spreadsheet

    Is it possible to automatically copy email addresses from a column in a spreadsheet to address book, preferably directly into a group? I've about 200 email addresses and I don't want to do it 1 by 1!

    Do you know that there is a search feature in the forums ?
    Using it with the complicated keyword 'address book' returns:
    http://discussions.apple.com/thread.jspa?messageID=11382111
    which contain useful infos.
    Yvan KOENIG (VALLAURIS, France) lundi 21 juin 2010 11:18:47

  • Google account admin receives EVERY iCal entry, from everyone in the org, whether or not invited

    We use google for our organizational email, and our account admin has just begun receiving emails every time someone adds or alters an event in their own calendar.
    We have checked and unchecked every box. We have removed and re-added all the calendars. No change. Also, it's only happening to one of two people designated as admin on the account.
    Thanks for any help!

    Your template contains an IE Conditional Comment that is adding 30px of top padding to  #sidebar1.  This padding may required in older versions of IE but not IE9.
    <!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .twoColFixRtHdr #sidebar1 { padding-top: 30px; }
    .twoColFixRtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    &lt;![endif]-->
    To fix it, change [if IE]  to [if lt IE 9]
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Trying to link a chart from Numbers to Pages

    "To update a linked chart in Keynote or Pages:
    Make sure that the Numbers spreadsheet containing the updated chart is saved. In Keynote or Pages, select the chart and click the Refresh button."
    Where is the Refresh button, please? It may be really obvious but I can't find it. Thanks

    Hi procrastina,
    fruhulda's comments motivated me try this. Please follow this from the Pages'09 User Guide:
    Updating a Chart Copied from a Numbers Document If  you’ve  created  a  chart  in  Numbers,  you  can  copy  it  and  paste  it  into  your  Pages   document.  After  it’s  been  pasted  into  Pages,  the  chart  remains  linked  to  the  data   tables it references in Numbers. To change the chart data, open the original Numbers document and edit the data there, save the Numbers document, and then refresh the chart data in Pages.
    To update a chart after you’ve updated its linked Numbers table:
    Select the chart on the page and click the Refresh button that appears.
    Note: You must save the Numbers document before copying and pasting your chart into your Pages document and after editing the Numbers data tables that the chart references.
    Repeat,
    Note: You must save the Numbers document before copying and pasting your chart into your Pages document and after editing the Numbers data tables that the chart references.
    Then you will see the Refresh buttton (recycle arrows to the right of your chart in Pages):
    Regards,
    Ian.
    P.S. In Australia and UK, we call that a graph, not a chart.
    Ian.

  • Transfering iCal data from one OS to another

    The new MacBook I am planning to purchase will come with OS X 10.6. How do I get my iCal entries from my older MacBook with Mac OS X 10.4.11 into the newer version. My wife's IMac running OS X 10.5.8 will not read them.

    Sorry for the confusion. I had a iMac G5 with iCal 2.0.5 running on Tiger 10.4.11. I bought a Mac mini with iCal 4.0.3 running on Snow Leopard 10.6.4.
    I migrated all my data from the G5 over to the Mac mini. When I opened iCal, all of my calendars were there, but the events in each calendar did not show up.
    I did try some workarounds, bottom line, none of them worked. I think it's an issue with the G5 using the PPC processor and the mini using the Intel processor.
    The point I was making was that there was a lot of info. in iCal still on my iMac that I needed on my mini and the only way to get it there was to retype it all back in or copy/paste to a file, etc. I was unable to shelve the iMac because of that.
    I'm sorry but I'm not clear on what you mean by "Can I set my old machine back to the non-beta version and keep the beta version on my new machine?"

  • One sheet in Numbers spreadsheet on iPad

    How to send/mail only one sheet from Numbers spreadsheet on iPad?

    I have same question. I cannot find anything on the internet...How can I send just ONE worksheet from a spreedsheet file in Numbers for iPad? Anyone? Apple support can also offer help, please.

  • I see people from different ages at my work and every month I need to count how many people from each age I've seen that month. How can I do to give the entries to numbers in a single cell and make numbers count them for me?

    I see people from different ages at my work and every month I need to count how many people from each age I've seen that month. How can I do to give the entries to numbers in a single cell and make numbers count them for me? The final result would be a spreadsheet telling there were 8 people from 20 to 39 years old, 14 peolple from 40 to 59 and so on...

    jpqcampos wrote:
    This appears to be an 'input form' using 'Radio Buttons' to select the category. Neither of these features are supported in Numbers '09.
    You can input the data on one table and summarize it on a second table, but the input table will continue to hold data for each event.
    And by using the Reorganize button, you can hide all but two rows of that table to approximate the appearance and performance of an input form.
    Here are the two tables, Data on the left and Summary on the right. Notes below.
    The grey-filled columns in both tables are 'working' columns, and may be hidden (as shown in the image below).
    Data table:
    D1 contains the word "TRUE" (in capital letters). (This row is always shown.)
    D2 is empty, or may contain any value except "TRUE" (This row is always hidden under the Reorganize rule.)The rest of Row 2 of this table requires the data shown: a number outside the range to be counted (999), and two checkboxes, both checked.
    D3 (and filled down the rest of column D):   =AND(OR(B2,C2),NOT(OR(B3,C3)))
    The formula returns TRUE only for the first unused row in the table (ie. the first row for which neither checkbox has been checked)
    Summary table:
    Column A contains labels for the age ranges to be counted.
    Column B contains the same information in the form necessary for the formulas in columns C and D. They need a numeric value, and that value must be the largest acceptable value in the range to be counted.
    C2 (and filled right to column D, then both filled down to row 5):
        =COUNTIFS(Data :: $A,"<="&$B,Data :: B,TRUE)-SUM(C$1:C1)
    Two changes from the previous example:
    COUNTIFS is used to separate the Native and Foreign counts as well as the age range to be counted.
    The amount subtracted from each result is the SUM of the earlier results, and includes the text value in the first cell of the column (which is interpreted by SUM as a zero).
    See note below regarding my earlier formula.
    When the greyed columns are hidden and the checkbox in the Reorganize pane is checked, the two tables will appear as shown below:
    Close the reorganize pane, and the 'data entry form' is ready to use.
    To use, enter the age first, then check one of the boxes.
    As soon as one box is checked, the row will be hidden, and the next (unused) row will be shown.
    Regards,
    Barry
    Note regarding formula in my earlier post:
    The earlier formula will give erroneous results as it subtracts only the count directly above it from its count of persons in the age range 0-n.
    In E2 of that table, replace "-E1" with "-SUM(E1:E$1)
    Fill down to E8.
    Ignore the instructions (in that post) following "Fill down to E8."
    B

  • Email templates using data from iWork Numbers spreadsheet

    As a photographer, when I get a call from a client to book a shoot, my first step is to open my bookings spreadsheet in Apple's Numbers and input the client's info into pre-determined columns: name, phone number, job date, job scheduled arrival time, job address, job city, travel distance, details regarding the shoot, and then I have a list of columns that specify costs (cost for work, taxes, travel, etc--automatically calculated via functions in spreadsheet).
    Immediately after I insert this information into the bookings spreadsheet, I open another file (a text file)--a text template I created to confirm bookings--and fill in the blanks using the information from the spreadsheet. Once that info has been filled out, I copy and paste the entire text file into an an email and email it to the client for his confirmation/records. The email template text (txt) file I use is included below.
    Question: Is it possible to create a script that will read the specified row in my Numbers booking spreadsheet (ie, the row where I input the information in the spreadsheet) and have the information inserted into the separate text confirmation template (apple pages or text or email?) at specified areas within the text? If so, can someone help me make something like this? Here's the template I use:
    Hi clientnamehere
    It was nice chatting with you. And thanks again for choosing us for your photography needs.
    For your convenience, I've outlined the details of your booking below. Please ensure everything looks OK:
    _Order Confirmation_
    As discussed, we've booked the following services:
    - [deletethose_that_don't_apply_incl_thisnote]
    - real estate photos
    - upscaling photos
    - virtual tour
    - hd video tour
    - customizable slideshow
    - floor plans
    - brochure design, print, & delivery
    - virtual staging
    - photoshop touchups
    For the following location:
    - property_address, city, postal_code
    On the following date and time:
    - month_date at time
    Note: If any of the above is incorrect in anyway, please email us asap.
    concision edit
    Message was edited by: thebigother

    Let's begin with your first question:
    I've tried to change the "Template.txt" file into an rtf so that I can apply bolding and underlining to certain sections (ie, bolding to the entries like client_name, job_date, etc... and underlining to the "Steps"), and I changed the script from Template.txt to Template.rtf to reflect this change... but when I run a script I get a bug... is there any way to use an rtf file in place of the txt?
    The following script should work with an RTF file, provided you don't mind using [GUI Scripting|http://www.macosxautomation.com/applescript/uiscripting/index.html] (in blue below). Before running the script, you will have to enable the Accessibility Frameworks by clicking the checkbox labeled "Enable access for assistive devices" in the Universal Access System Preference pane.
    *set theTemplate to POSIX file (POSIX path of (path to desktop) & "Template.rtf")*
    *tell application "Numbers"*
    *   tell table 1 of sheet 1 of front document*
    *      set theValues to value of cells of row 1 of selection range*
    *   end tell*
    *end tell*
    *tell application "TextEdit"*
    *   open theTemplate*
    *   set theText to text of front document*
    *end tell*
    *set theText to replace("clientnamehere", item 1 of theValues, theText)*
    *set theText to replace("property_address", item 2 of theValues, theText)*
    *set theText to replace("city", item 3 of theValues, theText)*
    *set theText to replace("postal_code", item 4 of theValues, theText)*
    *set theText to replace("month_date", item 5 of theValues, theText)*
    *set theText to replace("at time", "at " & item 6 of theValues, theText)*
    *tell application "TextEdit"*
       activate
    *   tell application "System Events"*
    *      keystroke "a" using command down* -- “Select All”
    *      keystroke "c" using command down* -- “Copy”
    *   end tell*
    *   close front document without saving*
    *end tell*
    *tell application "Mail"*
       activate
    *   make new outgoing message with properties {visible:true}*
    *   tell application "System Events"*
    *      keystroke tab & tab & tab & tab & tab* -- five 5 text fields at most
    *      delay 0.25* -- adjust if necessary
    *      keystroke "a" using command down* -- “Select All”
    *      keystroke "v" using command down* -- “Paste”
    *   end tell*
    *end tell*
    *on replace(X, Y, theText)*
    *   set P to offset of X in theText*
    *   set L to length of X*
    *   tell front document of application "TextEdit"*
    *      delete (characters (P + 1) through (P + L - 1))*
    *      set character P to Y*
    *      return its text*
    *   end tell*
    *end replace*

  • Sample Applescript: scraping values from numbers files into a master file

    Hi, I have programming experience in c and other languages, but am new to applescript and so am learning a lot from this forum.
    My goal is to make a timesheet system for my Dad (for a bday present) where every time he helps a client, he fills out a newly created numbers file - and after a week or so, he can run a script that scrapes certain values from each numbers file and places it into a master numbers file. Then saving and closing the file.
    Vince, it sounds like you've written a script that does this feature of looping through all numbers files in a folder and putting select values from each numbers file into a master numbers file (after clearing the previous values of the master file).
    Specifically, I'm looking for a sample script that opens up a numbers file, clears its table, then fills this table by scraping one value from a particular cell in every numbers file in a folder.
    If anyone has a similar script they would be willing to post or email to me, for me to use as a foundation and to learn from, I would be very very very grateful. My email is forman.jq at gmail dot com.

    I guess that this script may be a good starting point.
    --[SCRIPT fromfolder_2spreadsheet1]
    The target spreadsheet must be open at front and must contain the sheet sheet_destination which much contain the table table_destination.
    Choose the folder supposed to store the source sopreadsheets.
    Yvan KOENIG (VALLAURIS, France)
    2010/08/18
    --=====
    (* Edit these height properties to fit your needs *)
    property destination : "destinationDoc.numbers"
    property sheet_destination : "destination"
    property table_destination : "insert here"
    property premierelignedestination : 2
    property colonne_destination : 2
    property ledossierhabituel : "Macintosh HD Maxtor:Users:yvan_koenig:Desktop:dossier habituel:"
    property ligne_source : 2
    property colonne_source : 2
    --=====
    on run
    my activateGUIscripting()
    Select the folder storing the spreadsheets from which we will extract values *)
    set dossier_source to choose folder with prompt "Choose folder storing the Numbers documents…" default location (ledossierhabituel as alias)
    Build a list of disk items available in the selected folder *)
    tell application "System Events"
    set les_elements to every disk item of folder (dossier_source as text) --whose (get type identifier) is in
    set les_tableurs to {}
    Extracts the list of the Numbers spreadsheets available in the selected folder *)
    repeat with refsurelement in les_elements
    if type identifier of refsurelement is in {"com.apple.iwork.numbers.numbers", "com.apple.iwork.numbers.sffnumbers"} then
    copy path of refsurelement to end of les_tableurs
    end if
    end repeat
    end tell -- System Events
    if les_tableurs is {} then
    No Numbers documents available so we stop the process. *)
    set rapport to "The folder “" & dossier_source & "” doesn’t contain Numbers documents !"
    else
    set rapport to {}
    end if
    Check that the target Numbers document is open at front
    and that it embed the defined sheet embedding the defined table. *)
    tell application "Numbers"
    activate
    set existants to name of documents
    if destination is not in existants then
    copy "The document " & destination & " is not open !" to end of rapport
    else
    tell document destination
    if sheet_destination is not in (name of sheets) then
    copy "the sheet " & sheet_destination & " is unavailable in the document " & destination & " !" to end of rapport
    else
    tell sheet sheet_destination
    if table_destination is not in (name of tables) then copy "The table " & table_destination & " is unavailable in the sheet " & sheet_destination & " of the document " & destination & " !" to end of rapport
    end tell -- sheetSource
    end if
    end tell --document destination
    end if
    If target document is not at front or if it doesn't match the defined requirements,
    we quit the process. *)
    if rapport is not {} then error my recolle(rapport, return)
    Clean the target table, minus row 1 supposed to be storing columns headers *)
    tell document destination to tell sheet sheet_destination to tell table table_destination
    set selection range to range ("A2 : " & name of last cell)
    end tell --document destination
    end tell -- Numbers
    my selectMenu("Numbers", 4, 9) (* Suppress *)
    set liste_valeurs to {}
    tell application "Numbers"
    repeat with un_tableur in les_tableurs
    Open the spreadsheets and extract from each of them the wanted value *)
    open un_tableur
    tell document 1 to tell sheet 1 to tell table 1
    set une_valeur to value of cell 2 of column 2
    end tell
    if une_valeur is 0.0 then
    copy "empty" to end of liste_valeurs
    else
    copy une_valeur as text to end of liste_valeurs
    end if
    close document 1
    end repeat
    Now, it's time to insert the values in the target table *)
    set ligne_destination to premierelignedestination
    tell document destination to tell sheet sheet_destination to tell table table_destination
    repeat with une_valeur in liste_valeurs
    if not (exists row ligne_destination) then add row below last row
    if une_valeur is not "empty" then
    set value of cell ligne_destination of column colonne_destination to une_valeur
    end if
    set ligne_destination to ligne_destination + 1
    end repeat
    end tell -- document destination
    save document destination
    end tell -- Numbers
    end run
    --=====
    on recolle(l, d)
    local oTIDs, t
    set oTIDs to AppleScript's text item delimiters
    set AppleScript's text item delimiters to d
    set t to l as text
    set AppleScript's text item delimiters to oTIDs
    return t
    end recolle
    --=====
    on activateGUIscripting()
    (* to be sure than GUI scripting will be active *)
    tell application "System Events"
    if not (UI elements enabled) then set (UI elements enabled) to true
    end tell
    end activateGUIscripting
    --=====
    my selectMenu("Pages",5, 12)
    ==== Uses GUIscripting ====
    on selectMenu(theApp, mt, mi)
    tell application theApp
    activate
    tell application "System Events" to tell process theApp to tell menu bar 1 to ¬
    tell menu bar item mt to tell menu 1 to click menu item mi
    end tell -- application theApp
    end selectMenu
    --=====
    --[/SCRIPT]
    I apologize, I'm too busy to write more explanations.
    Yvan KOENIG (VALLAURIS, France) mercredi 18 août 2010 21:38:04

  • Is there a way to import iCal data into a numbers spreadsheet?

    Is there a way to import iCal data into a numbers spreadsheet?

    If you want to import lots of calendar events into Numbers, the general way to proceed would be to:
    export in CSV (character-separated values) from iCal (Calendar)
    import the CSV into Numbers.
    1. can be accomplished via AppleScript (perhaps in an Automator workflow) or, perhaps more convenient, a dedicated exporter app such as Export Calendars Pro or competitors.
    2. Importing into Numbers is usually as easy as File > Open and choose the CSV file.
    SG

  • How do I export Dates from Numbers to iCal?

    I'm building a spread sheet in *Numbers '08* with +expiration dates+ for many of the line items. I would like to export those dates to iCal so that iCal can _show/send me a reminder on those dates_. I've read that some people may be using a program called Bento to interface between Numbers & iCal. Seems like one should not have to buy an entire software program to export a simple date from Numbers to ICal -- both being native Apple programs.
    Perhaps there is a way to get Numbers to send date reminders without exporting to iCal?
    Any feedback is much appreciated.

    Here is the script doing the trick with Numbers '09.
    --[SCRIPT createical_events_fromNumbers'09]
    Enregistrer le script en tant que Script : createical_events_fromNumbers'09.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Sélectionner les cellules d'une table de Numbers qui décrivent des 'events'
    La table est censée contenir:
    une colonne avec la description des événements
    une colonne avec les date_heures de début
    une colonne avec les date_heures de fin
    Éditer la property 'theCalendar' en fonction du nom du calendrier à alimenter.
    menu Scripts > Numbers > createical_events_fromNumbers'09
    Le script crée les évènements dans iCal
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    --=====
    Save the script as a Script: createical_events_fromNumbers'09.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    In a table from Numbers '09,
    select cells describing 'events'.
    This table is supposed to embed :
    a column storing events descriptions
    a column storind start datetime
    a column storing end datetime.
    Edit the instruction defining the calendar name to fit your needs.
    menu Scripts > Numbers > createical_events_fromNumbers'09
    The script will create new events in iCal.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    This script creates new events from the content of selected cells from a Numbers '09 table.
    --=====
    example:
    event #1 18 avr. 2010 05:35 19 avr. 2010 15:35
    event #2 19 avr. 2010 05:35 20 avr. 2010 15:35
    event #3 20 avr. 2010 05:35 21 avr. 2010 15:35
    event #4 21 avr. 2010 05:35 22 avr. 2010 15:35
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2010/03/25
    --=====
    property theCalendar : "Personnel"
    property nbItemsPerEvent : 3
    --=====
    on run
    set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    set colNum2 to colNum1 + nbItemsPerEvent - 1
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
    repeat with r from rowNum1 to rowNum2
    set eProps to {}
    repeat with c from colNum1 to colNum2
    copy (value of cell r of column c) to end of eProps
    end repeat -- with column
    Now, eProps contains
    - the event description
    - the start date_time
    - the end date_time
    my makeEvent(eProps)
    end repeat
    end tell -- Numbers
    end run
    --=====
    on makeEvent({descr, sDate, eDate})
    tell application "iCal"
    make new event at the end of events of (every calendar whose name is theCalendar) with properties {description:descr, start date:sDate as text, end date:eDate as text, allday event:true}
    end tell
    end makeEvent
    --=====
    on getSelParams()
    local r_Name, t_Name, s_Name, d_Name, col_Num1, row_Num1, col_Num2, row_Num2
    set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
    if r_Name is missing value then
    if my parleAnglais() then
    error "No selected cells"
    else
    error "Il n'y a pas de cellule sélectionnée !"
    end if
    end if
    set two_Names to my decoupe(r_Name, ":")
    set {row_Num1, col_Num1} to my decipher(item 1 of two_Names, d_Name, s_Name, t_Name)
    if item 2 of two_Names = item 1 of two_Names then
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    else
    set {row_Num2, col_Num2} to my decipher(item 2 of two_Names, d_Name, s_Name, t_Name)
    end if
    return {d_Name, s_Name, t_Name, r_Name, row_Num1, col_Num1, row_Num2, col_Num2}
    end getSelParams
    --=====
    set {rowNumber, columnNumber} to my decipher(cellRef,docName,sheetName,tableName)
    apply to named row or named column !
    on decipher(n, d, s, t)
    tell application "Numbers" to tell document d to tell sheet s to tell table t to return {address of row of cell n, address of column of cell n}
    end decipher
    --=====
    set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
    on getSelection()
    local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
    tell application "Numbers" to tell document 1
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of tables
    if x > 0 then
    repeat with y from 1 to x
    try
    (selection range of table y) as text
    on error errMsg number errNum
    set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
    return {theDoc, theSheet, theTable, theRange}
    end try
    end repeat -- y
    end if -- x>0
    end tell -- sheet
    end repeat -- i
    end tell -- document
    return {missing value, missing value, missing value, missing value}
    end getSelection
    --=====
    on decoupe(t, d)
    local l
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to ""
    return l
    end decoupe
    --=====
    on parleAnglais()
    local z
    try
    tell application "Numbers" to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z is not "Annuler")
    end parleAnglais
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) jeudi 25 mars 2010 22:50:17

  • I can't open my numbers spreadsheet on my Mac, from iCloud

    I save my numbers spreadsheets to icloud as I need to access them on the go.
    Now that I have turned my Mac off and back on, I can't access any of my numbers spreadsheets from icloud.
    When I try to open one I get an error message that says "You need a newer version of Numbers to open this spreadsheet."
    I have the latest version.
    This happened a few weeks ago, and was eventually sorted when another update came through for numbers for my Mac.
    But this time I waited for the updated to catch up with Australia, but I still can't open them.
    I can however access then by sharing the document via icloud, but I can't use it in numbers on my Mac, and I cant save it to my Mac.
    Does anyone have any tips?

    It sounds like you may have mre than one version of Numbers installed on your Mac. and that the older one is attempting to open these files.
    If you were previously using Numbers '09, and upgraded to Numbers 3, the older version will still be on the Mac, enclosed in a folder named iWork '09, found in your Applications folder.
    Numbers 3 will also be in the Applications folder, but not enclosed in another folder.
    The two versions have different feature sets, and I would caution against removing the earlier version before ensuring that any features you have been using and that you need are supported in Numbers 3. Both versions can coexist on the same machine (and according to reports, can both be running at the same time).
    To ensure that you are launching the newer version, make sure you have it's icon on the Dock, and that you use that icon to start the launch. The icons for the two versions are similar—both are vertical bar graphs in 3D format. The difference is in the number of bars—three for Numbers '09 and four for Numbers 3. Once you ahve launched the needed version, use File > Open (or File > Recent items) to locte and open the file.
    Regards,
    Barry

Maybe you are looking for

  • Bouncing off the wall: Problems with passing/using pointers to classes

    I have a mostly completed "msPaint" (=assigment) program that is driving me nuts!!! 1. First shape you draw doesn't appear. 1.5 Draw a shape by clicking twice on Panel, can change shape, color, fill with what buttons you see. 2. Subsequently only the

  • Need Help on Data Back up and Retrieve

    Hi Mac Helpers I have a Macbook Pro Late 2008 Model and have both my Iphone and iPad synced to it. I intend to save all my data from the macbook to a Time Machine and then sell my macbook as I intend to buy a new one this July. My questions are 1) wo

  • External GPU via Thunderbolt

    With the new Mac Mini refresh, any hope of a new discrete GPU inside has been completely killed.  That said, I need a new PC still, and I'm willing to get creative in order to find a Mac that suits my needs inside my budget (under $1k, gaming capable

  • Can I download BI Publisher on Oracle 11g xe

    Hello, I am pretty new to BI Publisher, I have tired to install it many times, but have not been able to do so .... After I start RCU and when checking The Global Prerequisites, I get this MSG... The database you are connecting is not a supported ver

  • Aftereffects expression BUG. cannot compare the values of 2 sliders???????

    so do this: make a new comp with a new solid. add 2 slider effects to the layer. add an expression to the Opacity of the solid, add this tot he expression: // begin expression if(effect("slider_01")("Slider") == effect("slider_02")("Slider")){ 100 }e