> On 10/30/2004 8:45 PM, "Bryan Harris" wrote:
>> 4.  Goto my Database -- This script just opens up a certain message that I
>> have buried down in my folders...  It's basically a repository of all my
>> passwords and serial numbers for everything, which is so much nicer than
>> trying to remember all those passwords.  And it's accessible with a single
>> keystroke.
> 
> If you're still around -- this is from a thread from last October ;-) -- I'm
> wondering if you'd mind sharing the above script with the list. I use an
> Entourage Note for the same purpose as you, and I'd love to be able to open
> that note with a script.


Sure!  Basically you just open the message you want it to point to, then run
the script.  It will remember which message you had open, and then any time
you call the script in the future, it'll open that message.

I've had trouble with it not remembering the property correctly in recent
versions of the OS -- maybe one of the script-masters can offer a fix.

If anyone wants to use this, but doesn't know how to install it, just ask.

- Bryan

**************************************


property msgID : "<none>"

tell application "Microsoft Entourage"
    
    if msgID is "<none>" then
        try
            set tmpID to ID of displayed message of front window
        on error
            display dialog "This script only works with a message in the
front window." buttons {"Ok"} default button 1 with icon stop
            return
        end try
        
        display dialog ("This script opens a specific message every time it
is run.

Use the current message?  (If you'd like to use a different message, press
cancel, open the desired message and run this script again.)") with icon 1
        
        set msgID to tmpID
        
        display dialog "This message will now be opened whenever you run
this script in the future." buttons {"Ok"} default button 1 with icon 1
        
        return
        
    end if
    
    try
        open message id msgID
    on error
        display dialog "The message could not be found.  Please select a new
message and run this script again." buttons {"Ok"} default button 1 with
icon stop
        return
    end try
    
    (*
    set desktopDim to (do shell script "defaults -host localhost read |grep
-w \"Width\\" & "|" & "Height\"")
    set {l, t, r, b} to {0, 0, word 6 of desktopDim, word 3 of desktopDim}
    
    set bounds of front window to {100, 100, 0.7 * r, 0.75 * b}
*)
    
    activate
    
end tell
-- 
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