Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
mac
excel.macintosh
frontpage.mac
inetexplorer.mac
internet.mail.mac
internet.news.mac
mac.entourage
mac.excel
mac.explorer
mac.mediaplayer
mac.messenger
mac.office
mac.otherproducts
mac.powerpoint
mac.rdc
mac.virtualpc
mac.word
macintosh.general
media.player.mac
messenger.mac
office.mac
office.mac.entourage
outlook.mac
outlookexpress.mac
win2000.macintosh
windowsnt.mac
word.macword2001
  
 
date: Thu, 26 Jun 2008 20:02:22 -0700,    group: microsoft.public.office.mac.entourage        back       


Rebuild Entourage database via AppleScript or osascript   
I just thought I'd share this with the community since I spent
a little time researching this and didn't see any other articles online
which showed how to do this.

You can rebuild the Entourage database via AppleScript with the following
code:

tell application "Microsoft Database Utility"
    activate
end tell

tell application "System Events"
    tell process "Database Utility"
        tell window "Database Utility"
            click radio button "Rebuild database"
            click button "Continue"
        end tell
    end tell
end tell


The osascript may be a little more useful since it could be sent out to
multiple systems simultaneously using Apple Remote Desktop's Send Unix
feature. You can send all three lines at the same time.

/usr/bin/osascript -e 'tell application "Microsoft Database Utility" to
activate'  

/usr/bin/osascript -e 'tell application "System Events" to tell process
"Database Utility" to tell window "Database Utility" to click radio button
"Rebuild database"'

/usr/bin/osascript -e 'tell application "System Events" to tell process
"Database Utility" to tell window "Database Utility" to click button
"Continue"'
date: Thu, 26 Jun 2008 20:02:22 -0700   author:   Mason Rove

RE: Rebuild Entourage database via AppleScript or osascript   
Great script.  Works great.  Is there any way to ensure that one's "Main 
Identity" is always selected?  How about a way to automatically close the 
database utility once the rebuild is complete?

Also, you'd probably want to ensure that all office apps are closed before 
launching the rebuild (tell application "microsoft excel" to quit, etc)



"Mason Rove" wrote:

> I just thought I'd share this with the community since I spent
> a little time researching this and didn't see any other articles online
> which showed how to do this.
> 
> You can rebuild the Entourage database via AppleScript with the following
> code:
> 
> tell application "Microsoft Database Utility"
>     activate
> end tell
> 
> tell application "System Events"
>     tell process "Database Utility"
>         tell window "Database Utility"
>             click radio button "Rebuild database"
>             click button "Continue"
>         end tell
>     end tell
> end tell
> 
> 
> The osascript may be a little more useful since it could be sent out to
> multiple systems simultaneously using Apple Remote Desktop's Send Unix
> feature. You can send all three lines at the same time.
> 
> /usr/bin/osascript -e 'tell application "Microsoft Database Utility" to
> activate'  
> 
> /usr/bin/osascript -e 'tell application "System Events" to tell process
> "Database Utility" to tell window "Database Utility" to click radio button
> "Rebuild database"'
> 
> /usr/bin/osascript -e 'tell application "System Events" to tell process
> "Database Utility" to tell window "Database Utility" to click button
> "Continue"'
> 
>
date: Fri, 27 Jun 2008 10:12:00 -0700   author:   brad.lane

Re: Rebuild Entourage database via AppleScript or osascript   
Brad, those are all great, valid points that you made.
I'll see if I can add in those features that you suggested.


On 6/27/08 10:12 AM, in article
128EFA32-4758-4510-B449-8AD7A6B3C16F@microsoft.com, "brad.lane"
 wrote:

> Great script.  Works great.  Is there any way to ensure that one's "Main
> Identity" is always selected?  How about a way to automatically close the
> database utility once the rebuild is complete?
> 
> Also, you'd probably want to ensure that all office apps are closed before
> launching the rebuild (tell application "microsoft excel" to quit, etc)
> 
> 
> 
> "Mason Rove" wrote:
> 
>> I just thought I'd share this with the community since I spent
>> a little time researching this and didn't see any other articles online
>> which showed how to do this.
>> 
>> You can rebuild the Entourage database via AppleScript with the following
>> code:
>> 
>> tell application "Microsoft Database Utility"
>>     activate
>> end tell
>> 
>> tell application "System Events"
>>     tell process "Database Utility"
>>         tell window "Database Utility"
>>             click radio button "Rebuild database"
>>             click button "Continue"
>>         end tell
>>     end tell
>> end tell
>> 
>> 
>> The osascript may be a little more useful since it could be sent out to
>> multiple systems simultaneously using Apple Remote Desktop's Send Unix
>> feature. You can send all three lines at the same time.
>> 
>> /usr/bin/osascript -e 'tell application "Microsoft Database Utility" to
>> activate'  
>> 
>> /usr/bin/osascript -e 'tell application "System Events" to tell process
>> "Database Utility" to tell window "Database Utility" to click radio button
>> "Rebuild database"'
>> 
>> /usr/bin/osascript -e 'tell application "System Events" to tell process
>> "Database Utility" to tell window "Database Utility" to click button
>> "Continue"'
>> 
>>
date: Fri, 27 Jun 2008 10:31:28 -0700   author:   Mason Rove

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us