Results 1 to 4 of 4
  1. #1


    Member Since
    Apr 06, 2017
    Posts
    2
    Calendar not responding to change in events list
    Excuse me if I've missed a tool here for quoting AppleScript. I haven't found it.

    The Calendar display does respond to the events list.

    This:
    tell application "Calendar" to tell calendar "TEST" to delete every event
    tell application "Calendar" to return every event of calendar "TEST"
    returns "{}", an empty events list as expected. But the calendar still displays the deleted events.

    Any help would be greatly appreciated. Thanks!

  2. #2

    ferrarr's Avatar
    Member Since
    May 21, 2012
    Location
    Pawtucket, RI, USA
    Posts
    2,791
    Specs:
    L2014 Mac mini macOS 10.12, iPhone 6 iOS 10, iPad Pro 1 12.9" iOS 10,  Pencil 1
    Are you only viewing the "Test" calendar, or are you viewing "All" calendars? In the sidebar, uncheck all calendars except "Test" to view only the events within the "Test' calendar.
    -- Bob --
    Please backup. Everything has a life cycle, unexpected and warning free. Nothing will last as long as you want it to.

  3. #3


    Member Since
    Apr 06, 2017
    Posts
    2
    Thanks for the reply - yes, "TEST" is the only checked calendar
    Quote Originally Posted by ferrarr View Post
    Are you only viewing the "Test" calendar, or are you viewing "All" calendars? In the sidebar, uncheck all calendars except "Test" to view only the events within the "Test' calendar.
    All other calendars are off. Uncheck "TEST" and the event disappears.

    By the way:, I have also tried reloading calendars = no effect.


    BUT, enough about me, this doesn't happen to you or anyone else? If you delete every event through AS, do they disappear from the screen? If so, I would tryly like to see what you are doing that I am missing.


    For now, the GUI approach to the menu delete is working OK. But I'd still like to know why the calendar display is not responding as events are deleted through AppleScript.


    Thanks!

  4. #4

    ferrarr's Avatar
    Member Since
    May 21, 2012
    Location
    Pawtucket, RI, USA
    Posts
    2,791
    Specs:
    L2014 Mac mini macOS 10.12, iPhone 6 iOS 10, iPad Pro 1 12.9" iOS 10,  Pencil 1
    Sorry, I'm not an AppleScript user, I was just thinking out loud,

    Next thought, do you have the "test" calendar as an "iCloud" calendar, or as an "on my Mac" calendar? If it is an iCloud calendar, it mat be repopulating it from there.
    -- Bob --
    Please backup. Everything has a life cycle, unexpected and warning free. Nothing will last as long as you want it to.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Cannot add events to Calendar with Sierra
    By basementdogs in forum OS X - Operating System
    Replies: 6
    Last Post: 06-08-2017, 12:19 AM
  2. mystery events appear on iphone 5s calendar
    By Paul in Toledo in forum iPhone Hardware and Accessories
    Replies: 5
    Last Post: 08-06-2016, 11:40 AM
  3. Replies: 1
    Last Post: 06-06-2013, 11:14 AM
  4. Old events in Calendar lost??
    By odenkun in forum iOS and Apps
    Replies: 17
    Last Post: 11-09-2011, 01:27 AM
  5. ICAL: list all events on one calendar
    By StevenH in forum OS X - Apps and Games
    Replies: 11
    Last Post: 03-09-2008, 10:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •