Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Dismiss repeated alert windows in the Calendar Apps
I recently imported an .ics file into the Reminders app, but it turned out all the events were already in there, and the Calendar app balked at them, one at a time, repeatedly. I was continuously presented with an alert window which said that the event already exists and I could either cancel, go offline, or revert to server (the default). After hitting return a few dozen times, I decided I would write a quick AppleScript, and do something else while it worked. I'm sure a number of Hints followers might balk at this strategy, but it worked for and I didn't care how crude it was.

I just wanted to select the default button (revert to server) in every alert window, so all I needed was a script that would hit the return key every second. I wrote this in script editor, brought one of the alert windows to the front, then Command+clicked the "Run" button in the Script Editor (so it wouldn't bring the script window to the front):
repeat 1000000 times
	tell application "System Events" to keystroke return
	delay 1
end repeat
And that's it. I saved the script so that if I ever get in a similar situation, I can just edit the script to hit the key I want.

[crarko adds: I have not run into this issue, but if you do get it, having some idea for relief is probably quite welcome, even if it's not the most elegant. If there are alternative superior methods, please suggest them in the comments.]
    •    
  • Currently 2.83 / 5
  You rated: 5 / 5 (6 votes cast)
 
[5,377 views]  

Dismiss repeated alert windows in the Calendar | 2 comments | Create New Account
Click here to return to the 'Dismiss repeated alert windows in the Calendar' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Dismiss repeated alert windows in the Calendar
Authored by: Frederico on Feb 04, '14 08:14:56PM

Last time this happened to me I just force quit iCal, recognizing that there were no unique events in need of import. That said, if there were only one unique event amongst hundreds, this ugly solution would do the trick.

More useful would be a script or method to compare an import prospect to an existing database. Seems like this would be doable by exporting the current ics and running a compare. how to extract or update those differences, let alone assess which to accept as new is yet another level of difficulty.

I'm glad i don't see this problem often. (;



[ Reply to This | # ]
Dismiss repeated alert windows in the Calendar
Authored by: robleach on Feb 05, '14 01:02:46PM

The thing I didn't realize was that importing into the reminders app was the same as importing into the Calendar app. In fact, I think it was perpetrated by iCloud - syncing upon first run - it had asked me if I wanted to sync my reminders, but I'd already synced them in iCal. So it wasn't obvious to me what would happen.



[ Reply to This | # ]