• 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: Wow, AppleScript is tough!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wow, AppleScript is tough!


  • Subject: Re: Wow, AppleScript is tough!
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 5 Dec 2007 00:25:28 -0700

On Dec 5, 2007, at 12:01 AM, IMAPRH/privat wrote:

I improved Peter Baxters script slightly. I hope he will forgive me.

To make this work you should install the AppleScript Menu. The put this sript into the Mail Folder of the AppleScript Menu. When you select one message inside Mail and open Return2Sender.scpt you get a new mail as you wanted. Hope that helps

--Return2Sender.scpt
tell application "Mail"
	set theSender to sender of item 1 of (get selection)
	set theSubject to subject of item 1 of (get selection)

	set new_message to make outgoing message ¬
		with properties {subject:theSubject, visible:true}
	tell new_message to make to recipient ¬
		with properties {address:theSender}
	tell new_message to make cc recipient ¬
		with properties {address:"email@hidden"}

	tell new_message to set the subject to theSubject
end tell

Why not this (in 10.5 only):

tell application "Mail"
	set foo to reply (item 1 of (get selection)) with opening window
	tell foo
		make new cc recipient with properties {address:"email@hidden"}
	end tell
end tell

--
"Should any political party attempt to abolish social security, unemployment insurance, and eliminate labor laws and farm programs, you would not hear of that party again in our political history. There is a tiny splinter group, of course, that believes that you can do these things. Among them are a few Texas oil millionaires, and an occasional politician or businessman from other areas. Their number is negligible and they are stupid."
President Dwight D. Eisenhower, 1952


_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Wow, AppleScript is tough!
      • From: IMAPRH/privat <email@hidden>
References: 
 >Wow, AppleScript is tough! (From: Richard Doust <email@hidden>)
 >Re: Wow, AppleScript is tough! (From: IMAPRH/privat <email@hidden>)

  • Prev by Date: Re: Wow, AppleScript is tough!
  • Next by Date: Re: Wow, AppleScript is tough!
  • Previous by thread: Re: Wow, AppleScript is tough!
  • Next by thread: Re: Wow, AppleScript is tough!
  • Index(es):
    • Date
    • Thread