Title: Re: Scripts/Smile/OS 8.6
On 1/21/01 10:58 AM, "Paul Berkowitz" <[EMAIL PROTECTED]> wrote:

> On 1/21/01 9:33 AM, "Ruth Ann McClain" <[EMAIL PROTECTED]> wrote:
>
>> Today:
>> I just looked and am running, still, OS 8.6, and don't have the Apple Script
>> folder in the Applications folder, so if I find and download Smile, will it
>> work with OS 8.6?  I just haven't felt the need to go to 9.0, especially
>> since X is coming.  Like some others of you have said, until the bugs are
>> out of X, I will just keep chugging along with what I have.
>
>
> Ruth Ann,
>
> AppleScript folder is in the Apple Extras folder.  If you don't have OS 9.1
> then Apple Extras should be on your root Hard Disk. If you have trouble
> finding something on your computer, just use Sherlock. Set it look in File
> Names (i.e. not the Internet) by clicking on the big Hard Disk icon on the
> left. Type in
>
>   Script Editor
>
> and click the magnifying glass. It will find Script Editor for you.  When it
> shows up, click it to select it, then double-click it to open it up. Or,
> better, double-click on the folder containing it so you finally track down
> where it is. That will open the folder (should be AppleScript) for you.

There is also a script, Compile,  you can put in your Entourage scripts folder that will take the script (highlight script) from the message and open it automatically in the Smile. Can’t remember if I downloaded this, or it was an OE script that I updated for Erage. You can easily modify this for the Script Editor.


tell application "Microsoft Entourage"
    --
If nothing is selected, there will be an error...
   try
       set theText to selection
    on error
       display dialog "You don't appear to have anything selected!" buttons {"Quit Script"} default button 1
        return
   end try
   
    --
did we get some text, or some messages?
   if class of theText is not string then
       display dialog "You must select some text in a message to use this script" buttons {"Quit Script"} default button 1
        return
   end if
   set theSender to the display name of sender of displayed message of window 1
    set theDate to the time sent of displayed message of window 1
    set theText to "-- Script from a message sent by " & theSender & return & "-- on " & (the clock from theDate using system form "%d %t") & return & return & theText
end tell
--
OK, We got some text!
tell application "Smile"
    activate
    set theWind to make new script window
    set the properties of theWind to {name:"Script from Entourage", contents:theText}
    check syntax theWind
end tell

--
------------------end script--------------

--
Diane
--
Life is what happens to you while
you're making other plans - John Lennon

Reply via email to