Re: Safari/Entourage question
Re: Safari/Entourage question
- Subject: Re: Safari/Entourage question
- From: phildobbin <email@hidden>
- Date: Wed, 05 Nov 2003 08:42:16 +0000
On 5/11/03 02:03, "kai" <email@hidden> wrote:
>
on Tue, 04 Nov 2003 21:19:02 +0000, phildobbin <email@hidden> wrote:
>
>
> I'm trying to modify a John Gruber script that grabs selected text in what
>
> I've changed to Entourage X from Mailsmith and then queries it in Google in
>
> my default browser which is set to Safari.
[...]
>
Try something like this, Phil (untested):
[...]
>
tell application "Microsoft Entourage" to set s to window 1's selection
>
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 {""}
>
tell application "Safari"
>
activate
>
tell document 1 to set URL to s
>
end tell
This works perfectly. Thanks for the help, Kai.
Regards,
Phil.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.