I’m trying to have iCal select/view a certain calendar, so that when I go to File > Export (via AppleScript), it’ll export the selected calendar.
However, I can’t get it to work for the life of me. It seems like it should be easy, but when I try this code, I get “iCal got an error: NSReceiversCantHandleCommandScriptError”:
view calendar the_cal at (current date)
(the_cal is a valid calendar variable)
Also, when I try it plain ol’ generically like this:
view calendar (calendar 1) at (current date)
It still pouts and complains. Anyone have any idea on how to get this to work?
The AppleScript dictionary for iCal isn’t very clear on the command: