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]>
- Re: Script to look up selection in Google Julian Vrieslander
- Re: Script to look up selection in Google Allen Watson
- Re: Script to look up selection in Goog... Laurie A. Duncan
- Re: Script to look up selection in ... Allen Watson
- Re: Script to look up selection... David Wignall
- Re: Script to look up sele... Allen Watson
- Re: Script to look up ... Paul Berkowitz
- Re: Script to look up selection in Goog... Paul Berkowitz
- Is there one good spam killing prog... Lawrence E. Scovotto, CAE
- Re: Is there one good spam kill... Laurie A. Duncan
- Re: Script to look up selection in ... Julian Vrieslander
- Re: Script to look up selection in ... Allen Watson
- "All documents" in Entourage or Outloo... Carlo Anselmi
- Re: "All documents" in Entourage ... Allen Watson
- Re: "All documents" in Entour... Carlo Anselmi
- Re: "All documents" in En... Allen Watson
- Re: Script to look up selection in Google Tomasz Kukielka
