Applescrript from Rev

Ludovic Thébault ludovic.thebault at laposte.net
Sat Jan 9 02:21:23 EST 2010


Le 9 janv. 2010 à 08:03, Yves COPPE a écrit :

> 
> Hello list
> 
> on mac OS X(leopard)
> I'd like do send an applescript from rev to mail.app
> it should be something like this :
> open mail.app
> open a new message
> fill the fields "To", "Object" and "Message" with variables
> 
> Can anyone help me in this task ?
> 
> thank you
> 

Hello Yves

here a script found on the net :

tell application "Mail" 
	set newMessage to (make new outgoing message at end of outgoing messages with properties {subject:"@@", content:"##"}) 
	tell newMessage 
		make new recipient at end of to recipients with properties {address:"§§"} 
		make new cc recipient at beginning of cc recipients with properties {address:"••"} 
		send newMessage 
		delay 45 
		quit 
	end tell 
end tell

Place it on a field

With Rev, change @@ with the subject, ## with the message, §§ with the email and •• with an other email if you want.


More information about the use-livecode mailing list