i am trying to copy ical entries from one calendar to another using the following script:
tell application "iCal"
set localEvents to events of calendar "Privat"
set remoteEvents to events of calendar "owncloud"
repeat with theEvent in localEvents
if theEvent is not in remoteEvents then
copy theEvent to end of remoteEvents
end if
end repeat
end tell
it throws the following error, that i do not understand:
error "«class wrev» id \"AEBA9736-5B3B-48D3-9DCA-80577709EAB5\" of
«class wres» id \"BAB254DB-3CC3-4383-B2E0-C8135EA5F65C\" of
application \"iCal\" kann nicht in Typ vector umgewandelt werden."
number -1700 from «class wrev» id
"AEBA9736-5B3B-48D3-9DCA-80577709EAB5" of «class wres» id
"BAB254DB-3CC3-4383-B2E0-C8135EA5F65C" to vector
what does it mean and how can i get the script working?
Best Answer
This is what I have so far. All works ok, except for my duplicate check. Just receiving tell statement for "Event Discarded: Old.". When this is not the case. Any Help?
I believe the duplicate check problem flagging, when no duplicates exist is maybe because of this?