• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Determining the default CalendarName in Calendar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Determining the default CalendarName in Calendar


  • Subject: Determining the default CalendarName in Calendar
  • From: Bill Vlahos <email@hidden>
  • Date: Sat, 16 May 2015 11:46:33 -0700

AppleScript can create a calendar event using the following code.

tell application "Calendar"
activate
tell (first calendar whose name is calendarName)
set vEventInfo to make new event at end of events with properties {summary:theSummary, start date:startDate, end date:endDate, description:theDescription, location:theLocation}

How can I remove the requirement to specify the calendarName and have it just use whatever is set as the default calendar in the Calendar application?

Thank you,
Bill Vlahos
_________________
\InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure.
lcTaskList: (http://www.infowallet.com/lctasklist/index.htm)
RunRev lcTaskList Forum: (http://forums.runrev.com/viewforum.php?f=61)

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: Script wants to access your calendar !
  • Next by Date: Re: Script wants to access your calendar !
  • Previous by thread: Re: Script wants to access your calendar !
  • Next by thread: Re: Determining the default CalendarName in Calendar
  • Index(es):
    • Date
    • Thread