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

Re: Calendar scripting


  • Subject: Re: Calendar scripting
  • From: Jean-Christophe Helary <email@hidden>
  • Date: Tue, 20 Oct 2015 22:27:52 +0900


On Oct 20, 2015, at 22:16, Christopher Stone <email@hidden> wrote:

I should also note that after creating an event with Jay's script it does NOT become visible in my Calendar UNTIL I do something like toggle the Work calendar off/on.

After all the hints I could gather from asking here, what I do to display properly events in Calendar after creation is 

tell application "Calendar"
activate
set job to make new event in calendar "stuff" with properties {...}
→  switch view to week view
→  show job
end tell


Calendar is supposed to be in Week view but forcing it again to week view and ordering it to "show job" actually manages to display the job in the calendar.

Jean-Christophe 
 _______________________________________________
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: Calendar scripting
      • From: Christopher Stone <email@hidden>
References: 
 >Calendar scripting (From: Jay Louvion <email@hidden>)
 >Re: Calendar scripting (From: Shane Stanley <email@hidden>)
 >Re: Calendar scripting (From: Jay Louvion <email@hidden>)
 >Re: Calendar scripting (From: Shane Stanley <email@hidden>)
 >Re: Calendar scripting (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Calendar scripting
  • Next by Date: Re: Calendar scripting
  • Previous by thread: Re: Calendar scripting
  • Next by thread: Re: Calendar scripting
  • Index(es):
    • Date
    • Thread