How to import calendar into iCal?

I am trying to import a calendar into iCal. Here is my AppleScript:
set theFile to "Sample.ics"
tell application "iCal"
open theFile
end tell
tell application "System Events"
tell process "iCal"
tell window "Add events"
click pop up button 1
click menu item "New Calendar" of menu 1 of pop up button 1
click button "OK"
end tell
end tell
end tell
I have specified a full path for theFile in the actual script. Here is what happens when I run it:
The iCal icon starts jumping and the script just stays running. If I hunt around I can find the "Add events" window and it is just sitting there waiting for interaction. If I click the pop up button and select New Calendar then click OK the file imports like I wanted and my script errors out saying it can't find the "Add Events" window. Clearly my script loads the file into iCal fine. Then it has problems. Here are my guesses as to what goes wrong:
1. maybe the "Add event" window is modal and iCal won't respond to the script until the window is dealt with.
2. maybe the pop up button is not a pop up button and is some other UI element .
3. maybe there is an issue with focus
4. maybe I have no clue, should stop speculating, and someone will help me.

I'm stuck too. Although the Accessibility Inspector describes the “Add events” window as belonging to iCal, the script seems not to see that window as a UI element of iCal:
tell application "iCal"
activate -- essential statement!
open theFile
end tell
tell application "System Events" to tell process "iCal"
return UI elements
end tell
--> {window "iCal" of application process "iCal" of application "System Events", menu bar 1 of application process "iCal" of application "System Events"}
It doesn't even seem possible to bypass the process by using the keystroke command.
Message was edited by: Pierre L.

Similar Messages

  • How to import calendar into Outlook

    I have a Zire 72, which right now refuses to sync with the Palm Desktop (v. 4.1.4). So, I exported the calendar from Palm Desktop, and got a .dba file. The question is, how do I get it into Outlook 2000 (which does not accept .dba files)?
    I tried the Palm Conduit sync, but it anly told me that Outlook is already set to be my calendar etc.  .. manager, maybe because I already have the contacts from my Palm in there, and a part of the calendar (the part that dba2csv does before it starts to cost quite a lot of money).
    After a day of work yesterday with this, I would be most grateful for some tips (exhausted :-).
    Regards,
    Hans L
    Post relates to: Zire 72

    The .dba file will only be recognized by Palm desktop. This is an archive file for Palm desktop only.
    Do any of the other apps sync like contacts, tasks or memos?
    To see if you can get hotsync to work with Palm desktop, try the steps in the following guide.
    Click on the following link to the kb.palm.com webpage for the article regarding HotSync troubleshooting: Start here.
    http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=2630
    If you want to transfer the data from palm desktop to Outlook and cannot sync, you can use Pocket Copy by Chapura. Here is the link to the Chapura page for Pocket copy.
    http://www.chapura.com/pocketcopy.php
    For reference purposes, click on the following link for the support page for your device on the kb.palm.com webpage.
    http://kb.palm.com/wps/portal/kb/na/zire/72/unlock​ed/home/page_en.html
    There are links on the page to the user guide, troubleshooting, how to's, downloads, etc.

  • How to import Lotus Notes or Outlook calendar into iCal ???

    Is there a way to import calendar data from either Lotus Notes or Outlook calendar into iCal ? Is there a generic data type file that I must first get the calendar file into before importing into iCal ?

    The file must be .ics. I used to simply use Missing Sync to get my calendars synced up, however it's not yet supported in Leopard.
    So, in order to get my office Outlook data over to Ical, I simply used the following "macro"
    http://sourceforge.net/project/showfiles.php?group_id=136194
    Simply follow the instructions...it worked well for me. all my work data got transferred over.

  • Importing Now Up To Date Calendar into iCal

    I have been using NUTD for ten years. It is now starting to crash often with the latest OS software. So I would like to import my entire NUTD calendar into iCal. However, I cannot figure out how to do this. I have looked at discussions on the subject, but they all seem to be several years old. Any new ideas on doing this? I have a Bed and Breakfast and need the past ten years calendar info, plus the reservation info that goes out three year from now. So I need to import 13 years worth of calendar data.

    I just did a full migration from Now Up-to-Date to iCal and was successful using a tip obtained elsewhere. The key is to pass the data through Excel and Palm Desktop. Now can't export vCal yet and iCal won't import tab delimited text. However, Palm Desktop can import tab-delimted text and export vCal.
    I don't think you can successfuly create multiple iCal calendars from the Now categories going through Palm Desktop; I didn't try that. To make sure it worked out, I did it using multiple export/imports doing one Now category at a time by passing it through Excel. Here's a summary of the steps:
    1. Export your date rage from Now in tab-delimited format.
    2. Open the export file in Excel, sort by category.
    3. Extract all entries for each category into separate workbooks, save each as tab-delimited text file format.
    4. Open Palm Desktop and create a new calendar for the category (e.g business, personal, special events, etc.) Save it in a temp place like your desktop.
    5. Import the text file to the new Palm Desktop calendar
    6. Export from Palm Desktop to a vCal file
    7. Create a new calendar in iCal for the category to be imported
    8. Import the vCal file into that calendar.
    Repeat steps 4-8 for each Now category.
    There were some anomolies I couldn't explain (like some single-day all-day events becoming two-day events in iCal), but I just cleaned those up manually.
    Repeating events in the Now Calendar will become multiple single events in iCal. Also, if you have any commas in titles or notes, the process of passing through Excell wil put " " around those entries in iCal. If this bothers you, you could pass the saved Excel text files (from step 3) through a text editor (Text Wrangler works best, TextEdit should do it also) to delete the quotes if you want.
      Mac OS X (10.4.8)  
    MacBook Pro   Mac OS X (10.4.8)  

  • Is there a way to import a pdf calendar into iCal?

    My employer issues my calendar in pdf format. Is there a way to import this into iCal? Either directly or is there a way to automate a conversion to some format and then import?
    many thanks in advance.
    b737guru.

    Hi b737guru,
    pdfs might contain visually structured graphics, but they don't necessarily contain internally structured data. Which is what you'd need for a conversion to the iCalendar format, the format that iCal's .ics files use. So I don't think you're likely to find an easy solution.
    Your best bet is to try and get the data from your employer, before it is printed/formatted to a pdf file. If there are enough of you campaigning, they might consider .ics as an alternative to .pdf. Google Calendar, FaceBook and Microsoft Outlook can read .ics, which makes it fairly universal.

  • How do I merge my hotmail calendar into ical?

    I am trying to upload my hotmail calendar into ical. How do I do this?
    Thanks!
    Casey

    HI,
    Try Version Tracker for a utility can can export to the iCal format.
    Carolyn

  • I am trying to download a calendar into ical and keep getting this message-Some of the events in this calendar have alerts that open files or applications.  What am I doing wrong???

    I am trying to download a calendar into ical and keep getting this message-Some of the events in this calendar have alerts that open files or applications. Remove alerts or cancel 
    What am I doing wrong or missing??

    I have this same problem in October of 2013. I am unable to import .ics files into Lion that I exported from my Snow Leopard MacBookPro without losing all of my future events (which all have alerts attached). All of the events from BEFORE today's date are successfully importing, presumably because they are no longer expected to trigger alerts via Apple Mail. After my first unsuccessful attempt, I learned that iCal was communicating with iCloud by default. I have since turned off iCloud, but I have not found a solution to the problem. Harvey

  • Importing tasks into iCal

    Does anyone know if it's possible to import tasks into iCal? What format would be needed? Would it just use the Import function or is there another trick?
    Thanks

    Hi Jessie,
    Is the calendar published on your friend's site in iCal format?
    John M

  • How to import swc into Adobe Flash CS3 ?

    I use following command to create a swc file,such as test.swc, there is a file named test.swf in myapp directory
    compc -include-sources myapp -output test.swc
    then I copy test.swc into Adobe Flash CS3\zh_cn\Configuration\Components directory, Then I restart Adobe Flash CS3,and create a file and press ctrl+f7, but I don't find test.swc!  Why? Where is wrong? How to import swc into Adobe Flash cs3?
    Thanks

    If you want to embed videos in your muse site, without using a service like youtube or vimeo, then you will need to manually upload the video files on the server and use them via the video tag available in html5, HTML5 Video
    To insert the video tags in your muse pages, you will need to use the 'Object -> Insert HTML' option.
    Since this option is not available in Muse, out of the box, I will recommend that you post this on our ideas section over here, https://forums.adobe.com/community/muse/ideas, and let our devs team know of this requirement.
    - Abhishek Maurya

  • How to import video into adobe muse?

    how to import video into adobe muse?

    If you want to embed videos in your muse site, without using a service like youtube or vimeo, then you will need to manually upload the video files on the server and use them via the video tag available in html5, HTML5 Video
    To insert the video tags in your muse pages, you will need to use the 'Object -> Insert HTML' option.
    Since this option is not available in Muse, out of the box, I will recommend that you post this on our ideas section over here, https://forums.adobe.com/community/muse/ideas, and let our devs team know of this requirement.
    - Abhishek Maurya

  • My i phone was stolen and now I need to upload my contact to my i cloud from my I tunes...any ideas how to import contacts into i cloud, with either i tunes or with old iphone

    My i phone was stolen and now I need to upload my contacts to my i cloud from my I tunes...any ideas how to import contacts into i cloud, with either i tunes or with old iphone?

    If you have the contacts on the phone you can sync the phone to the computer. The contacts should then show in address book. At this point you can sync the address book data to iCloud. You have to make sure the iCloud account is setup on the computer and this will not work unless the computer is running 10.7.2 of course. There are other ways to add the contacts to iCloud like through the phone but the phone must be running iOS5. If it is you can simply add the cloud account to the phone and toggle the contacts slider. You will get a prompt to keep or delete the contact data. Of course you keep. Then you will get a prompt to merge at which point you do. This should merge the contacts on the phone with iCloud. Hope this helps.

  • Can anyone tell me how to import vCard into iCloud??

    Whenever i try to import a vCard from my pc into iCloud, it always shows a message that, "1 contact couldn't be imported because there was a problem reading the vCard" Can anyone tell me how to import vCard into iCloud??

    Hey,
    Yes, a lot of people have this question actually. You need to import it like it's a video and then find iPhoto in the import window to do it. Check out this site. It shows you exactly how to do this.
    http://imovietutorialhelp.com/how-to-import-video-into-imovie-from-iphoto.html
    The iMovie Guy
    I may receive some form of compensation, financial or otherwise, from my video or link.

  • How to import Photos into Active Directory

    Hi -
    IT Director asked me to import employees pictures into Active Directory so that we can use them in Outlook, SharePoint, Lync etc.
    Do you know how to import pictures into Active Directory?

    Thumbnailphoto Attribute in active directory is responsible for adding photos to Active directory.
    By Default Replication of this attribute will be disabled to Global catalog server. To make use of this facility we will have to enable replication of this attribute to Global Catalog. ( To accomplish this you will have to edit the schema using Active directory
    schema snap in).
    Refer Below link which explains about enabling the replication of Thumbnailphoto attribute to Global catalog.
    http://www.msexchange.org/articles_tutorials/exchange-server-2010/management-administration/configuring-using-display-picture-exchange-server-2010.html
    Requirements
    Minimum requirement for your exchange enviornment to use this - Exchange 2010.
    Exchange 2007 Don't support uploading photos AFAIK.
    Domain controller should be running with atleast windows server 2008 or later. And
    schema has to be windows server 2008
    Additionally for your information,
    How to remove the uploaded photos?
    Either You can edit the Thumbnailphoto attribute using ADSIedit and remove the entry which is assocaited with Thumbnailphoto attribute.
    Or,
    Try this.
    The Import-RecipientDataProperty and Export-RecipientDataProperty cmdlets allow you to import and export the photo blob to and from
    thumbnailPhoto attribute, but there's no Remove-RecipientDataProperty cmdlet to remove it. You can use the
    RemovePicture switch of Set-Mailbox cmdlet to remove a user's photo. For example:
    Set-Mailbox "Bharat Suneja" -RemovePicture
    Check out the below link which explains in and out of uploading photos,
    http://blogs.technet.com/b/exchange/archive/2010/06/01/gal-photos-frequently-asked-questions.aspx
    http://blogs.technet.com/b/ilvancri/archive/2009/11/17/upload-picture-in-outlook-2010-using-the-exchange-management-shell-exchange-2010.aspx
    To know about uploading photo using powershell ask this question in powershell forum
    http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/threads
    Regards,
    _Prashant_
    MCSA|MCITP SA|Microsoft Exchange 2003 Blog - http://prashant1987.wordpress.com Disclaimer: This posting is provided AS-IS with no warranties/guarantees and confers no rights.

  • How to import DLU into CCM

    Hi everyone
         I am a voice amatuer, so who can tell me how to import DLU into CCM. I never did it. please tell me the detail step.
    Thanks

    Hi
    In general:
    1) You receive an 11-digit PAK code from Cisco.
    2) Go to www.cisco.com/go/license, and register the PAK code. For this you need your CCM licensing MAC address; one way to find this is go to CCMAdmin (ccmpublisher/ccmadmin), log in, go to System/Licensing/Upload License, then view an existing license to see what the 'host' part refers to. Another is to go to ccmpublisher/cmplatform, log in, and go to Show/Network.
    3) You receive a .lic file from Cisco via email
    4) Log into the CCM Publisher at ccmpublisherip/ccmadmin
    5) Go to system/licensing/Upload License and upload your file
    Regards
    Aaron
    Please rate helpful posts...

  • How to import metadata into EPMA application by using ODI

    Hi All,
    1.Can you tell anyone, how to import metadata into EPMA application by using ODI. Detailed steps with screen shots will be appreciated.
    2. What was the interface tables. How the interface tables will be useful while importing metadata into EPMA application (Detailed steps with screen shots will be appreciated.). And tell me the interface tables structure and work process. give me the clear idea bout interface tables. I don't know anything about interface tables.
    3.Which method(either using ODI or Interface tables) is optimized/bestcase for importing metadata into EPMA application.
    My database is Oracle 10g and I am using Planning 9.3.1.
    Thanks in advance.
    Thanks And Regards,
    Bhagya Lakshmi.

    Hi,
    Answer to your questions
    1. You can't import metadata directly into EPMA using ODI, the only option is use the EPMA interface tables which is your question 2.
    2. Interface tables are just a structure of database tables which you populate with metadata and then this is pushed into EPMA, the structure of the tables takes a while to get an understanding of. The best place to start would be the documentation :- http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/bpma_admin.pdf
    3. As explained in question 1 you can't use ODI directly to import metadata into EPMA but with a lot of hard work and effort you could probably populate interface tables from EPMA, though I must admit I am not a fan of the interface tables because I don't think they were designed with simplicity and ease of use in mind.
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for