• 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: IMAPRH/privat <email@hidden>
  • Date: Wed, 5 Dec 2007 08:01:03 +0100

Hi Rich,
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

ronald
---

Am Mittwoch05.12.2007 um 02:25 schrieb Richard Doust:

I've been an 8080 Assembler programmer, a C programmer, a C++ programmer, a Smalltalker, I've been writing Java code for 7 years, I do Ruby from time to time, and I've read parts of 2 books on AppleScript and I have to say that I find nothing more difficult than programming in it.
If I want to write an AppleScript to set my Bcc and Reply-To fields automatically in Mail when I respond to an email (I haven't found this option in the application itself) does anyone know where I would start? I've looked at the Dictionary for Mail and I don't see anything obvious. Of course, once I'd written said script, I'd have to figure out how to invoke it from within Mail, but I'm willing to take this one step at a time.
Anybody willing to give me a pointer?
Thanks
Rich
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden

_______________________________________________ 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: Michelle Steiner <email@hidden>
References: 
 >Wow, AppleScript is tough! (From: Richard Doust <email@hidden>)

  • Prev by Date: Re: What makes AppleScript difficult
  • 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