• 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
Sorting list of calendar events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sorting list of calendar events


  • Subject: Sorting list of calendar events
  • From: Jan Erik Moström <email@hidden>
  • Date: Thu, 16 Apr 2015 09:48:40 +0200
  • Authorized-sender: email@hidden

I haven't been writing applescript for several years so I've forgotten almost everything. However, I'm now trying to cobble together an applescript that reads today's events from the Calendar, I then going to create a simple text note from this.

My problem is that I want to entries sorted by time so that the first event of the day is always first etc.

I use this line to get the events

set theEvents to every event whose ((start date of it) ≥ (todayDate) and (end date of it) ≤ (tomorrowDate))


but how to I do the sorting?

 _______________________________________________
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

  • Follow-Ups:
    • Re: Sorting list of calendar events
      • From: Christian Boyce <email@hidden>
    • Re: Sorting list of calendar events
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: is the ouput of this script accurate?
  • Next by Date: Re: Sorting list of calendar events
  • Previous by thread: Re: Why does opening any script editor open many other apps?
  • Next by thread: Re: Sorting list of calendar events
  • Index(es):
    • Date
    • Thread