• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Safari/Entourage question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Safari/Entourage question
      • From: Walter Ian Kaye <email@hidden>
  • Prev by Date: Re: Quark 4,5 Open in OS X problem
  • Next by Date: Re: How to get every message that meets a condition in Mail
  • Previous by thread: Re: Entourage -> rule -> attachments
  • Next by thread: Re: Safari/Entourage question
  • Index(es):
    • Date
    • Thread