• 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
mail.app forgetting changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mail.app forgetting changes


  • Subject: mail.app forgetting changes
  • From: HÃ¥vard Graudo <email@hidden>
  • Date: Thu, 7 Oct 2004 21:36:39 +0200

I have a script that edits the subjects on selected mails, either through a rule or on the selected messages.

It seems to work fine, but Mail.app discards the changes if I close and open the mailbox. (turn triangle twice).

How can I get my changes to stick?



Here is boiled down version:

using terms from application "Mail"
	on perform mail action with messages zeMessage
		repeat with msg in zeMessage
			set x to (subject of msg)
			set x to "Added text " & x
			set subject of msg to x
		end repeat
	end perform mail action with messages

	on run
		tell application "Mail" to set sel to selection
		tell me to perform mail action with messages sel
	end run
end using terms from

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Quark auto text place
  • Next by Date: Re: Screen saver deactivation (Martin Orpen)
  • Previous by thread: RE: Word length - resolved
  • Next by thread: Re: Screen saver deactivation (Martin Orpen)
  • Index(es):
    • Date
    • Thread