On 18/10/04 2:57 pm, "Jim Robertson" <[EMAIL PROTECTED]> wrote:

> I'm wondering if there's a script I could make that would turn off Office
> notifications on both macs (they're connected on an ethernet LAN when I
> synch them, with the PowerBook appearing on the G5's desktop), then launch
> the Synchronize! Pro X document. Then I'd run a separate script to turn ON
> Office Notifications on both machines once the sync had finished.

Turning the notifications on & off is easy enough:

    Tell app "Microsoft Database Daemon" to quit

Turns it off...

    Tell app "Microsoft Database Daemon" to launch

Turns it back on again.

I don't have synchronise pro, so I can't tell what commands will start it
up, but if it's just a matter of opening a particular document you can say:

    open item "xyz" of folder (get path to documents folder)

To run them into one script...

    Tell app "Microsoft Database Daemon" to quit
    tell app "finder"
       open item "xyz" of folder (get path to documents folder)
       delay 5 -- wait for synchronise to launch
       Repeat while "Synchronize! Pro X" is in name of every process
            delay 2 -- wait 2 seconds and check again
        end repeat
    end tell
    Tell app "Microsoft Database Daemon" to launch

Note: This script assumes synchronise will quit after doing it's stuff...


-- 
Barry Wainwright
Microsoft MVP (see http://mvp.support.microsoft.com for details)
Seen the All-New Entourage Help Pages? - Check them out:
        <http://www.entourage.mvps.org/>


-- 
To unsubscribe:                     
<mailto:[EMAIL PROTECTED]>
archives:       
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:       
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>

Reply via email to