I wrote a script that does exactly what I wish it to. It works perfectly
from within applescript. However, when saved as a compiled script and
placed with the other Entourage scripts and I try to run it from Entourage's
script menu, I get a message "The script cannot be run. An error has
occurred (-192)"
Am I missing something obvious?
Robert
The script is given below, in case the contents of the script are relevant.
-------
tell application "Microsoft Entourage"
try
set imapccts to every IMAP account --list of all imap accts
end try
repeat with acct in imapccts
set folderlist to folders of acct -- typically be only "INBOX"
repeat with aFolder in folderlist
my recurseFolders(aFolder)
refresh aFolder --this is what bolds unread messages
end repeat
end repeat
end tell
--my thanks to Barry Wainright's "Export Folders 1.1" for this
on recurseFolders(thisFolder)
tell application "Microsoft Entourage"
set newFolders to every folder of thisFolder -- any subfolders?
repeat with aFolder in newFolders
my recurseFolders(aFolder) -- recursive call to all lower levels
end repeat
end tell
end recurseFolders
--
To unsubscribe:
<mailto:[EMAIL PROTECTED]>
archives:
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>