2/12/03 James Rohde :

>Just ran your script (downloaded from Chris' site), VRic, and under 9.2.2 
>(with EMailer 2.0v3) it first displays one box with the number of folders 
>(124 for me) and then a pause while it counts the messages, and a second 
>box displaying the number of messages (24,383 for me). So at least in the 
>version Chris has on his site (this past week when I DL'ed it), it works 
>for showing both counts. Thanks again, VRic, for a quite useful script! 

That one is probably not from me :-)
Mine shows both counts in the same dialog and I didn't release it yet.

I'll post it to my site in a few days.
I'm considering adding a donation-ware notice to all those ;-)

In the meantime, here's the script's source, it's short and straightforward (beware of 
unwanted line breaks, wait for the release if you're unsure):

-- DB Stats --
-- additions � VRic 04/2000
-- count how many folders and messages there are

tell application "Claris Emailer"
        set folderList to the entire folder hierarchy
        set messageCount to 0
        repeat with theFolder in folderList
                set messageCount to messageCount + (count messages in theFolder)
        end repeat
end tell
display dialog "Il y a " & (number of items in folderList) & " dossiers" & return      
 & "et " & messageCount & " messages" buttons {"Tiens donc ?"} default button "Tiens 
donc ?" with icon note
-- end of the script --

For English dialogs, just replace the last line with:

display dialog "There are " & (number of items in folderList) & " folders" & return    
 & "and " & messageCount & " messages" buttons {"Fancy that!"} default button "Fancy 
that!" with icon note


----
VRic

___________________________________________________________________________
To unsubscribe send a mail message with a SUBJECT line of "unsubscribe" to
<[EMAIL PROTECTED]>  or  <[EMAIL PROTECTED]>

Reply via email to