Create iCal-iCloud calendar with applescript

I am trying trying to create a new calendar with Applescript in my iCloud account.  I've tried using the following:
tell application "iCal"
  make new calendar with properties {title:item i of NewCalendars}
                    end tell
but it creates it On My Mac.  I've tried searching for a way to do this but can't find anything.

That seems to be possible with GUI Scripting:
set theTitle to "New calendar"
tell application "Calendar" to activate
tell application "System Events" to tell process "Calendar"
    tell menu bar item "File" of menu bar 1
        click menu item "iCloud" of menu 1 of menu item "New Calendar " of menu 1
        -- (don't remove the space at the end of "New Calendar ")
    end tell
    keystroke theTitle & return
end tell
Before running the script, don't forget to enable access for assistive devices in the Accessibility System Preference pane.

Similar Messages

  • Create iCloud calendar with Applescript

    I use the create calendar with name "" and it makes it "On My Mac". Is there any way to make it in iCloud instead?
    Thanks

    I'm having the same exact problem.
    However, it seems to only be a problem if iCal ISN'T OPEN when the AppleScript is triggered. If iCal is ALREADY OPEN before the AppleScript is triggered, then the problem doesn't exist.
    I'm not an expert at AppleScript, so I can't figure out how to ensure that iCal is running before the AppleScript is executed. Below is the contents of my AppleScript, and it always creates the event "On My Mac" instead of on iCloud if iCal isn't already running. 
    Any ideas on how to modify this AppleScript so that it ensures that iCal is running before the script executes?
    -- declare variables
    set theCalendarTitle to "Personal"
    set theSummary to "Title of Appointment"
    set theStartDate to "5/16/2012"
    set theStartTime to "12:00 PM"
    set theEndDate to "5/16/2012"
    set theEndTime to "5:00 PM"
    --convert the date and time variables to text strings
    set theStartDateAsText to theStartDate & " " & theStartTime as text
    set theEndDateAsText to theEndDate & " " & theEndTime as text
    -- convert text to dates
    set theStartDate to date theStartDateAsText
    set theEndDate to date theEndDateAsText
    tell application "iCal"
      activate
      --check for the existence of the calendar,  if the calendar doesn't exist, make a new one
              set allCalendarTitles to the title of every calendar
              if allCalendarTitles contains theCalendarTitle then
                        set theCalendarNumber to (first calendar whose title is theCalendarTitle)
              else
                        set theCalendarNumber to (make calendar at end of calendars with properties {title:theCalendarTitle})
              end if
      --make the event
              set theEvent to make event at end of events of theCalendarNumber
              tell theEvent
                        set start date to theStartDate
                        set end date to theEndDate
                        set summary to theSummary
              end tell
      show theEvent
    end tell

  • Sharing icloud calendars with non icloud users

    Anyone have a suggestion on how to share my ical icloud calendars with non-icloud users?
    Can't seem to share with MobileMe - and Tungle.com doesn't support it either. What about google calendars? Would that be a good work around or end up duplicating entries somehow if they're all synced.
    Please advise.

    Ok Apple... I was sooooo excited about moving my whole team to iCloud, I've already got us setup and our upcoming events are being entered as I write. Then.... I discovered.... The fatal flaw....
    While most of my people are apple users, I still have an employee that isn't and isn't ever going to be. No big deal right, they should just get read only access while the "in crowd" gets the cool toys. Except....
    See screenshot below, I can EITHER publish read-only to a url OR share through iCloud... NOT BOTH. So in order for my one non-apple employee to see the calender, I have to give up the ability for all the others to make changes... making this calendar service just as ineffective as the one I was trying to replace!
    This would be such an easy thing to fix, but I suspect it was a conscious decision to incentivize more people to switch to all apple. Yet I just can't get everybody to do that, I can't force an employee to buy an iPhone and I sure ain't gonna pay for it. So I'm stuck. Next stop... Google Calendar.

  • Can i share my iCloud calendar with others? If so, how?

    Can i share my iCloud calendar with others? If so, how?

    do you mean, the 'Publish' option? That only gives me two options 1 mobile me, which is now defunct. and 2 a private server, which I don't understand. thanks!
    sorry, after a further read, the comment was about icloud not ical. I don't have icloud because I don't have Lion because it doesn't work well with FCP7. So I don't know how to share my ical. Can you help?

  • Share icloud calendar with google calendar users

    I know that this has been asked before, but I can find no official response from apple to the question of how to share my icloud calendar with google calendar users (or frankly, anyone not using icloud)
    Can anyone point me to an official response to this surprising intransigence?
    cheers
    Ben

    It is a 2 way sync, enter the event on the iCloud calendar (in Google) and it will be there when you view the calendar in iCal, or Google or at the iCloud website.
    Do you know how to publish to Google in BusyCal?

  • How can I share my ical work calendar with my coworkers that are using google calendar?

    How can I share my ical work calendar with my coworkers that are using google calendar?

    You can only do this by syncing your calendar to an external server - MobileMe is designed for this but if you don't already have a MobileMe account you can't start one now.
    If you do have a MobileMe account the method is described here:
    http://www.wilmut.webspace.virginmedia.com/notes/sharedcalendar.html#publicshare
    If you don't, you could sync to Google Calendar (Google accounts are free) or wait for iCloud which should be out in a couple of months and will probably provide this sort of facility.
    You might like to consider BusyCal which is like iCal Pro - similar to iCal but with extra facilities. It can sync calendars on a Lan and also between accounts on the same machine (you have to have fast user switching enabled).
    There is a free trial available on their website: it's slightly cheaper from the Mac App Store. (I have no connection with this company).

  • How do I sync multiple iCloud calendars with outlook

    I am running Outlook 2007 (not exchange) on a PC and want to sync multiple (3-4) iCloud calendars with Outlook. Currently I am syncing only one and works great, but I am having a terrible time on setting up additional iCloud Calendars. Any suggestions?

    Diesel -
    First, Thanks for responding!!!
    Second, I've got it syncing with one, and only one, of the calendars so I know that it can. The question that I have is if there is a way to sync with multiple calendars and if so how do I do it. I've got the one working by having iCloud sync with one of my calendars in outlook and my phone sync with iCloud. Does anyone have an idea how to accomplish this?

  • I have 2 iPhones and one iPad. Can i create individual icloud accounts with one itunes account?

    I have 2 iPhones and 1 iPad. Can I create individual icloud accounts with one iTunes account?

    I have 3 emails and 3 devices. I just want to be able to share the purchased music/apps but keep pictures/contacts etc separate. Is this possible??

  • Share iCloud calendar with Google Calendar

    Ok, so I'v moved all my contacts, email and calendars to iCloud and everything is wonderfull.
    I share a few calendars with my girlfriend and she is sharing her study calendar with me.
    We have a shared calendar set up, where we enter when our son is in daycare and we have another shared calendar with things we do together.
    Now comes the tricky question:
    How do we share our icloud calendar showing our sons day in the daycare, with our parents who don't have any Apple devices and only uses google calendar?
    Reason for this is, we live in the same city, and sometimes they want to go and pick up our son. With a shared calendar like that, they would just be able to write a note in their synced google calendar saying that they are going to pick up our son, and we would see it in our synced icloud calendar.
    Also, my girlfriend only have an old-school cellphone. She is now finnaly getting a smartphone through her work.
    Only problem I see comming with this, is that her phone is not going to be an iPhone.
    So how do we keep sharing all our icloud calendars with her on a windows phone 7.5?
    Is the Apple ecosystem finaly getting so clamped up, that it won't allow users who happen to have frinds or family without i-products, to share their life with them?
    As everything stands now, I'm getting the feeling that Apple demands me to buy Apple products to all my family and frinds, just so that we can still interact and plan our different lives through shared calendars on icloud.
    Can this really be right?
    I hope I'm just missing something. Cause I really thought, that icloud would be this outstanding product which would make my cloud-life the easiest thing in the world. Instead, it really seems to be a step back, in the cloud evolution.

    Thanks for your answer..
    it dosn't really solve my problem, since I'm not interested in only sharing a calender on the web.
    My wish is to sync my calendar with friends and family that are not using icloud, and not using apple product at all.
    For example: My girlfriend, how finaly is getting a smartphone, needs some way to add and edit our shared calendar, so that we can both enter and edit appointments.
    Same goes for my parrents, that whants to be able to set appointments of when they want to pick up our son at the daycare.
    All this is possible, and has been possible for ages with other online calendar systems, so why does apple take a step down the evolutionstaires by disabling such a great feature?
    Though MobileMe was not perfect, it did infact make this possible as I remember, so why can't this be done in iCloud?
    You can subscribe to CalDav on your i-device, but you can't share one with friends, in what world is that logic?

  • Can i share my icloud calendar with my administrative assistant?

    can i share my icloud calendar with my administrative assistant?
    we use outlook 2013 in the office, and my windows 8 computer can't seem to share calendars the way we used to.  I have my calendar on icloud now.  can someone else view it?  how do I set that up?

    Hello JanR1997,
    We've an article that details the process of sharing your calendars with others.
    iCloud: Share a calendar with others
    http://support.apple.com/kb/PH2690
    Cheers,
    Allen

  • HT203521 In iOS8 I can't turn off shared iCloud calendar alerts. I share iCloud calendars with 3 others and am constantly getting their alarms for upcoming appointments. Settings- Notifications- Calendar- Shared Calendar Changes turns off changes only.

    Have had new iPhone 6 for 2 months, using iOS 8.  I share iCloud calendars with 3 others and I am getting bombarded with their upcoming appointment alerts.  There seems no way to turn this off.  I went to Settings->Notifications->INCLUDE(Calendar)->Shared Calendar Changes and turned everything off, but this only blocks alerts about new events or changes to events being added to the calendars, it does not block the 5-minute/10-minute/etc. alarms that go off immediately in advance of the appointment.  There used to be a setting in iOS7 in "Mail, Contacts, and Calendars" way at the bottom to turn off alarms from shared calendars, but I don't see that in iOS8.  Any ideas?

    Finally figured this out when I read jodiemcneill 's post about Google calendars.  Thanks!
    Reposting the basic idea: to turn off event alerts from shared ICloud calendars, select the Calendar App, then click the "info" (i.e., the circled red 'i') icon next to the shared iCloud calendar to be silenced. Go down to "Notifications" and turn the slider off for "Event Alerts: (Allow events on this calendar to display alerts.)"
    For good measure, you can also turn off the slider for "Show Changes" to prevent the calendar from displaying messages when shared events are added/modified/deleted, although this can be done "globally" for all shared iCloud Calendars in Settings->Notifications->Calendar->Invitations (turn off all sliders, click "none" for Alert Style).
    This has been a major pain in the ... neck ... for the past 3 months.  So glad to start the new year with a suddnely-much-quieter iPhone 6.

  • TS3999 syncing iCloud calendar with gmail

    I have no idea how to sync my iCloud calendar with gmail calendar.  I keep getting two claendars, and the one under iCloud Home does not show up in gmail.

    You can't sync an iCloud calendar with Gmail, you can view an iCloud calendar on Gmail's calendar service if you like, but they don't sync.

  • Can someone please help - I want to sync my icloud calendar with my iphone calendar.  All of my entries from previous months are on my icloud calendar but not my iphone.  How do I get them back on there?

    Can someone please help - I want to sync my icloud calendar with my iphone calendar.  All of my entries from previous months are on my icloud calendar but not my iphone.  How do I get them back on there?  I have corrected my settings for future entries (I think/hope) but want to put the old stuff back on.

    Try this...
    Settings > Mail, Contact, Calendars.  Scroll down to Calendars and set "Sync" as desired.

  • Syncing iCloud Calendar with Outlook for Mac (new Outlook)

    Does anyone know if it's possible to sync your iCloud Calendar with Outlook for Mac yet (Outlook for Mac is the new Outlook that comes with Microsoft Office 365)? If so, how do you do it?
    I've done some research on this question, and most of the responses are a few years old... wanted to see if anything has changed since. I find it weird how I can sync my iCloud Calendar with Outlook 2013 on my PC, but not with Outlook for Mac on my Mac--which is practically the same thing.
    Thanks ahead of time!

    Greetings kipp0606,
    If you would like to use iCloud mail in an email client, you may want to review the following article. It contains the mail server settings you'll need to set it up:
    iCloud: Mail server settings for email clients - Apple Support
    Use these mail server settings if you need to manually set up your email app (client) to use an iCloud email account. 
    Do you need these mail server settings?
    You can use the mail server settings in this article to manually set up your email app to send and receive email with an iCloud email account. However, you shouldn't need to do that if you meet the iCloud system requirements and can use any of these setup methods:
    OS X Lion v10.7.4 or later: Use iCloud Preferences.
    Microsoft Windows with Microsoft Outlook 2010 or later: Use iCloud for Windows.
    iOS 7 or later: Use iCloud settings.
    If you're using the Mail app in OS X Snow Leopard v10.6, use the mail server information in the iCloud Mail setup instructions for Snow Leopard instead of the settings below.Mail server settings
    Refer to your email app's documentation for information about how to use these settings. iCloud Mail uses the IMAP and SMTP standards supported by most modern email apps. iCloud does not support POP.
    IMAP information for the incoming mail server
    Server name: imap.mail.me.com
    SSL Required: Yes
    If you receive errors when using SSL, try using TLS instead.
    Port: 993
    Username: The name part of your iCloud email address (for example, emilyparker, not [email protected])
    Password: Your iCloud password
    SMTP information for the outgoing mail server
    Server name: smtp.mail.me.com
    SSL Required: Yes
    If you receive errors when using SSL, try using TLS or STARTTLS instead.
    Port: 587
    SMTP Authentication Required: Yes
    Username: Your full iCloud email address (for example, [email protected], not emilyparker)
    Password: Your iCloud password
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • Syncing iCloud calendar with google calendar

    Is there no way to sync icloud calendar with google calendar?

    This works for me
    Visit: http://icaltogcal.com
    Now I see the few icloud appointments in my Google calender and thus browser and (iphone) apps
    -add the url as a new google calandar
    -I accept requests via mail
    -don't forget to put the sync on: https://www.google.com/calendar/iphoneselect as well as in the various apps.
    good luck!

Maybe you are looking for

  • MacBook Pro retina won't turn on

    My mac was left on overnight opened it and it froze wouldn't allow me to quite any programs or even move the mouse so I shut it down and now it won't turn on

  • Deploying Petstore on Oracle 9i App server

    Hi all I am trying to deploy the petstore application on Oracle 9i App server. I am using the "dcmctl" utility to start my HTTP server. Everytime I run the "dcmctl" tool I get a different message(something like ADMN-906025, ADMN-100003) on Standard o

  • Datatable Header Freeze

    I am using JSF 2.0 .I need provide the vertical scrollbar and horizontal for the datatable. I achieved using stylesheet. But the header of the datatable is also scrolling Is there any build in method to freeze the header of datatable. or can u plz pr

  • Finding photos to attach to email or docs

    When i want to attach a photo to an e-mail or document, the browse only lets me see the nonsensical file name downloaded from the camera and by year, month, and sequence, not the album name, not the name i gave it. Is there a better way? As i underst

  • B2b and b2c

    Hi - Can anyone head me toward documentation that will tell me the differences between a B2C customer and a B2B customer?  Would be really helpful instead of having to test each function over and over to see the differences. Thanks, Shelby