Scripting "Empty Cache" in Entourage

D

dmarcantonio

Version: 2008
Operating System: Mac OS X 10.5 (Leopard)
Processor: intel
Email Client: Exchange

Anyone know where the cache for Entourage hides in the system?

We are about to move several dozen users to a new mailserver and the cleanest way to ensure they don't see inconsistencies it to get them to Empty Cache. The problem is, some of the users will ignore the request to do such a simple thing, I'd much rather have an AppleScript application go to them after the move that does it on its own.

Any ideas on how to get AppleScript to empty the cahces?
 
W

William Smith

Anyone know where the cache for Entourage hides in the system?

We are about to move several dozen users to a new mailserver and the
cleanest way to ensure they don't see inconsistencies it to get them
to Empty Cache. The problem is, some of the users will ignore the
request to do such a simple thing, I'd much rather have an
AppleScript application go to them after the move that does it on its
own.

Any ideas on how to get AppleScript to empty the cahces?

This should do what you want assuming you only have one Exchange account
configured in Entourage:

tell application "Microsoft Entourage"
empty cache of every folder of Exchange account 1
end tell

Hope this helps!

--

bill

William M. Smith, Microsoft Interop MVP - Mac/Windows
Entourage Help Page <http://entourage.mvps.org/>
Entourage Help Blog <http://blog.entourage.mvps.org/>
 
B

Barry Wainwright

William Smith said:
This should do what you want assuming you only have one Exchange account
configured in Entourage:

tell application "Microsoft Entourage"
empty cache of every folder of Exchange account 1
end tell

Hope this helps!



sorry Bill, but that will only empty the cache in the top level folders
- not in any subfolders.

this script will recursively work its way down the folder hierarchy,
emptying caches as it goes.

I haven't tested it, as I don't want the cache emptied on mny 2Gb
exchange account!

-- Empty Exchange Cache v1.0 (2008-06-24)
-- an applescript by Barry Wainwright <mailto:[email protected]>
-- Empties the local cache of every folder in every exchange account
-- This script released under a Creative Commons Attribution,
NonCommercial, ShareAlike 2.0 England & Wales License.
-- see <http://creativecommons.org/licenses/by-nc-sa/2.0/uk/> for full
details

tell application "Microsoft Entourage"
repeat with anAccount in every Exchange account
repeat with aFolder in every folder of anAccount
my processFolder(aFolder)
end repeat
end repeat
end tell

on processFolder(thisFolder)
tell application "Microsoft Entourage"
repeat with aSubFolder in every folder of thisFolder
my processFolder(aSubFolder)
end repeat
empty cache thisFolder
end tell
end processFolder
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top