• 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
Re: A mail script inquiry
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A mail script inquiry


  • Subject: Re: A mail script inquiry
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 30 Aug 2005 12:13:38 -0700


On Aug 30, 2005, at 11:54 AM, martin wrote:

Has anyone got a script to change the subject of an incoming message and save it?

I don't think it can be done. Although mail's dictionary does not say that subject is read only, and a script that ostensibly changes the subject runs without error, the subject is not changed.


tell application "Mail"
    set foo to the selection
    set foo to item 1 of foo
    set the subject of foo to "this subject has been changed."
    subject of foo
end tell

--
A great Idea!  That's what we need--a great idea.
 --Pesudolous, (A Funny Thing Happened on the way to the forum)

_______________________________________________
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


  • Follow-Ups:
    • Re: A mail script inquiry
      • From: "Gary (Lists)" <email@hidden>
References: 
 >A mail script inquiry (From: martin <email@hidden>)

  • Prev by Date: Re: A mail script inquiry
  • Next by Date: Scripting a capricious app (iView Mediapro)
  • Previous by thread: Re: A mail script inquiry
  • Next by thread: Re: A mail script inquiry
  • Index(es):
    • Date
    • Thread