• 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
Re: AppleScript Date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript Date


  • Subject: Re: AppleScript Date
  • From: john Mitchell via AppleScript-Users <email@hidden>
  • Date: Mon, 6 Jul 2020 18:02:38 +1000

I am using Calendar.app to create events in my diary.

I cannot get a text string of the date (& time) to be accepted

tell application "Calendar"

        set eventRef to (make new event at end of events of calendar
eventCalendar with properties ¬
                {start date:startDate, description:eventDescription, allday
event:allDay, status:none})

startDate has the value “10 July 2020" and I get this message

Calendar got an error: Can’t make "10 July 2020" into type date. -1700

What am I doing wrong?


regards


John

Email:  email@hidden • Mob: +61 410 318 131



 _______________________________________________
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: AppleScript Date
      • From: Shane Stanley via AppleScript-Users <email@hidden>
  • Prev by Date: Re: Convert .tsv to .xls
  • Next by Date: Re: AppleScript Date
  • Previous by thread: Re: Desktop setup script
  • Next by thread: Re: AppleScript Date
  • Index(es):
    • Date
    • Thread