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


Edit From Line Before Sending

Author Erik Mueller-Harder
Last modified 2003-01-01
What is this?

Yes, I've been asking for this for years, too. Again, I wrote an applescript which makes an educated guess at the address I want to use, and then assign it a control-key equivalent ("^F" for "From"). I'm using it right now to send this message from "xxx@xxxx.com."

Season to taste! face_smile


tell application "Mailsmith 1.5"
  if subject of message window 1 is not "" then
    if contents of message window 1 is not "" then
      if 1st to_recipient of message window 1 is not "" then
        set myAcct to mail account (sending account of message window 1)
        set savedAddress to reply address of myAcct
        set toDomain to address of 1st to_recipient of message window 1
        set toDomain to 3rd word of toDomain
        set result to (display dialog "Enter the address you want to use:" default answer toDomain & "@" & last word of savedAddress)
        if button returned of result = "OK" then
          set reply address of myAcct to text returned of result
          send message window 1
          set reply address of myAcct to savedAddress
        end if
      else
        beep
      end if
    else
      beep
    end if
  else
    beep
  end if
end tell