Safari/Entourage question
Safari/Entourage question
- Subject: Safari/Entourage question
- From: phildobbin <email@hidden>
- Date: Tue, 04 Nov 2003 21:19:02 +0000
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.
The original script used IE's getURL but there is no equivalent in Safari's
dictionary. Script follows:
tell application "Microsoft Entourage"
set s to selection of window 1 as string
if s = "" then
set s to text returned of ,
(display dialog "Search terms:" default answer "")
end if
set searchterms to ""
repeat with i from 1 to count words of s
set searchterms to searchterms & "+" & word i of s
end repeat
if s is not "" then
tell application "Safari"
activate
getURL("
http://www.google.com/search?hl=en&q=") & searchterms
end tell
end if
end tell
Everything works fine up to the getURL when Entourage gives up an error
message saying Safari cannot continue getURL (for obvious reasons).
Any help appreciated as I can't see anything in Safari's dictionary to work
round this.
I'm using 10.2.8.
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.