Title: Re: Script to look up selection in Google
I made Paul's suggested modification, saved the script (shown below) in the Entourage script folder, and restarted Entourage.  It still shows "Parameter error".  This happens if I run the script with text selected in a message window, or I run it with no text selected (but entered via the "Search terms" dialog).

The script is a nice idea, but currently I don't have the time to chase the bug myself.


tell application "Microsoft Entourage"
    activate
    try
       set s to window 1's selection
        if {class of s} is not in {string, Unicode text} then error number -128
    on error
       beep 2
        display dialog "You don't appear to have selected any text."
        return
   end try
end
tell
if
(count s) is 0 then set s to (display dialog "Search terms:" default answer "")'s text returned
if (count s) is 0 then error number -128
set text item delimiters to "+"
set s to "http://www.google.com/search?hl=en&q=" & s's words
set text item delimiters to {""}
open location s

--
Julian Vrieslander <[EMAIL PROTECTED]>

Reply via email to