Re: Scripting "Empty Cache" in Entourage
- From: Barry Wainwright <barry@xxxxxxxxxxxxxxxx>
- Date: Tue, 24 Jun 2008 09:03:36 +0100
In article <Od39D0a1IHA.2384@xxxxxxxxxxxxxxxxxxxx>,
William Smith <mecklists@xxxxxxxxxxxxxxxxxxxxxx> wrote:
dmarcantonio@xxxxxxxxxxxxxxxx wrote:
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!
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:barryw@xxxxxxx>
-- 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
--
Barry Wainwright
Microsoft MVP
.
- References:
- Scripting "Empty Cache" in Entourage
- From: dmarcantonio
- Re: Scripting "Empty Cache" in Entourage
- From: William Smith
- Scripting "Empty Cache" in Entourage
- Prev by Date: Re: Entourage 2008 - still no hyperlink?
- Next by Date: Junk disposal
- Previous by thread: Re: Scripting "Empty Cache" in Entourage
- Next by thread: Does not show mail account
- Index(es):
Relevant Pages
|