C
Conrad
If I delete a category in Entourage 2004 from an applescript run in Script
Editor, everything works fine. If I run the same script from the Entourage
Script Menu it crashes Entourage. What I believe is the relevant code
snippit is this:
repeat with delCategory in toDelete
delete delCategory
end repeat
set allCategories to categories
It seems to be crashing at either the delete statement, or at the retrieve
all categories statement.
I tried surrounding the delete statement with a couple of two second delays
in case the delete hadn't completed when I was getting the updated list, but
that made no difference.
Does anyone have any suggestions?
Best,
Conrad
Editor, everything works fine. If I run the same script from the Entourage
Script Menu it crashes Entourage. What I believe is the relevant code
snippit is this:
repeat with delCategory in toDelete
delete delCategory
end repeat
set allCategories to categories
It seems to be crashing at either the delete statement, or at the retrieve
all categories statement.
I tried surrounding the delete statement with a couple of two second delays
in case the delete hadn't completed when I was getting the updated list, but
that made no difference.
Does anyone have any suggestions?
Best,
Conrad