Title: Re: Corrupted Database
On 12/16/04 4:51 PM, "Lars Schou" <[EMAIL PROTECTED]> wrote:
> This reminded me to file a feature request - I think it would be helpful to
> be able to get a read on the size of the database from inside Entourage. For
> users who are slow at navigating in the Finder, avoiding having to browse
> the drive, find the MUD folder, Get Info etc. would be a real time-saver.
Save this script as "Database Size \coD" in the Entourage Scripts folder to be able to get the size by pressing ctrl-opt-D, or change the keyboard shortcut (Help/About the Script menu) It works for English language Entourage: change the folder and file names as appropriate for other languages.
tell application "Microsoft Entourage"
set iName to name of current identity
set MUDpath to path to MUD as Unicode text
end tell
set database to alias (MUDpath & "Office 2004 Identities:" & iName & ":Database")
set mSize to ((((size of (info for database)) * 10) div (1024 * 1024)) / 10) --MB to 1 decimal place
if mSize > 1024 then
set theSize to ((((mSize * 100) div 1024) / 100) as string) & " GB" -- GB to 2 decimal places
else
set theSize to (mSize as string) & " MB"
end if
if iName ≠ "Main Identity" then set iName to (iName & " identity")
display dialog "The size of the database of " & iName & " is " & theSize buttons {"OK"} default button 1 with icon 1
--
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>
PLEASE always state which version of Microsoft Office you are using - **2004**, X or 2001. It's often impossible to answer your questions otherwise.
--
Paul Berkowitz
- Re: Corrupted Database Paul Berkowitz
- Re: Corrupted Database Diane Ross
- Re: Corrupted Database Diane Ross
