Mailsmith
Other Programs
Scripts
Mailsmith.scpt
Archive to sub-mailbox
Check Spelling
Find reply
Change font size
Submit Script to JEM
Fix common spelling errors
Setting SMTP server
URL from Safari
Address from AB
linkMunge
Export to Address Book
Saving attachments
Digest Script
File with same
POP window position
Position of new windows
iCal and Mailsmith
Edit From Line
Modified Thread Script
Reply to Selection
Temporary Text Window
Compact gain
Tracking backups
Edit subject
Googler
Auto-rewrap
MMA
SMTP server
Open, fetch, and close
URL Manager
BrainForest
Thread by Author
Thread by subject
Export Email
Get Selection
Read Addresses
Export Email
Organize Email
Account setup
Mailsmith 2 BBEdit
BBEdit 2 Mailsmith
Search II
Check One
Delete Enclosure
Open, fetch, close
Set Answered
Set Redirected
Empty Trash
List found
Print Several
Del. old. msg.
Delete Enclosures
Accounts
Address Book
Editing
Filters
General
Import/Export
Links
Mailboxes
Memory
Scripting
Speed
send/receive
Tips/Tricks


Googler Script

Author John Gruber
Last modified 2002-04-21
What is this?
This script can be used to automatically send some text to Google for searching

-- This script uses the selected text in the frontmost window
-- as a query string for the Google search engine. If there is
-- no selection, it prompts for one in a dialog box.
tell application "Mailsmith"
    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 "Internet Explorer"
            Activate
            GetURL "http://www.google.com/search?hl=en&q=" & searchterms
        end tell
    end if
end tell