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 subject of received messages |
| Author |
John Gruber
|
| Last modified |
2002-04-21
|
|
What is this?
This script allows you to change the subject line of
messages that have been received.
|
tell application "Mailsmith 1.5"
activate
set s to ""
set retry to false
try
set the_list to get selection as list
set m to item 1 of the_list
if class of m is not message then set retry to true
on error
set retry to true
end try
if retry then
set retry to false
try
set the_list to message of window 1 as list
on error
set retry to true
end try
end if
if retry then set the_list to {}
repeat with i from 1 to count items of the_list
try
set subj to subject of item i of the_list as string
set s to text returned of ¬
(display dialog "Subject:" default answer subj)
set subject of item i of the_list to s
on error
beep
end try
end repeat
end tell
|