Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'You can get rid of one tell...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
You can get rid of one tell...
Authored by: tonyo on Aug 31, '06 10:43:53AM
You don't need to have a seperate tell statement for the viisible:true. Just tack it on to your properties statement:

tell application "Mail"
	set mynewmessage to make new outgoing message 
		with properties {content:return & "--------" & return & myquoteoftheday, visible:true}
	activate
end tell
Great idea, I've added it to my collection of mail scripts. Here's my own take on mail sigs using Fortune (assumes you have installed via Fink or Darwinports)

set textResult to do shell script "/opt/local/bin/fortune handey"
(* Change the fortune flag to your own fortune file or a favorite,
like humorists or zippy.
*)
set theSig to "
---------
Tony O                         tonyo at mac daht com
" & textResult
(* Put your own address in above.
*)
tell application "Mail"
	activate
	set newMessage to make new outgoing message at end of outgoing messages with properties {content:theSig, visible:true}
end tell


[ Reply to This | # ]