|
|
10.4: Change iCal attendee attendance status via script
Okay, I've found a workaround for the problem mentioned in the previous post, at least. Apparently, iCal doesn't bother to update attendee status via AppleScript unless you give it a little nudge by adding and removing an attendee. About 50% of the time for me, it just fails to even draw the little icons unless you do. This script just adds and removes a blank attendee at the end and seems to fix everything; let me know if there are more troubles. I also addressed an issue where you may have multiple events with the same name, now the chooser includes the date and UID; a little uglier, but a good bit safer. I've also added some comments and added a variable to set the number of days called the_number_of_days, simply enough. It's currently still set to 5. If the following code doesn't copy-paste properly, you can download the compiled (but editable) script from here, or for the cautious, the script as a text file from here.
10.4: Change iCal attendee attendance status via script
Still not working for me for some reason. I see it adding the new attendee at the end and then deleting them, but the icon next to it still remains as the little grey arrow for email sent, even if I go to another event and come back or close the info window and reopen it.
One weird thing that might be informative is that when I am in the dialog to set the status, it says "Choose new status for attendee: (was --constant ****E6na--)" even thought the previous status should be "unknown" or something like that. Does that help figure out the problem? I can get it to work on certain events, but only the first attendee of those events. The only thing different about these events that I can figure out is that there are in published calendars. In unpublished calendars and for second later attendees, even restarting iCal does not make the proper status show up. :( I did change the code so you don't have to pick a calendar or limit yourself to events only a few days away. I assume you did this for speed but I used
which is a fast way of searching all future events in a particular calendar. Here's the complete code, which still runs reasonably fast on my puny 500 MHz powerbook! :)
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|