Prev: Creating a mesh
Next: if all elements statement
From: the cyclist on 8 Jul 2010 09:20 The subject line pretty much says it all. Is there a way to get MATLAB to send an email using the Mac mail program?
From: Joshua Arnott on 8 Jul 2010 10:16 "the cyclist" <thecyclist(a)gmail.com> wrote in message <i14jan$gdq$1(a)fred.mathworks.com>... > The subject line pretty much says it all. Is there a way to get MATLAB to send an email using the Mac mail program? You can access OS X's Action Script using the "osascript" unix command. Just call that from Matlab. I don't have a Mac handy to test this atm, but it should be easy enough.
From: Jan Simon on 8 Jul 2010 10:33 Dear Cyclist, > The subject line pretty much says it all. Is there a way to get MATLAB to send an email using the Mac mail program? I assume, that this depends on the possibility to control the Apple program "mail" remotely. Perhaps an Apple newsgroup has more detailed knowledge. Does SENDMAIL help you? Jan
From: Doug Schwarz on 10 Jul 2010 09:10 In article <i14jan$gdq$1(a)fred.mathworks.com>, "the cyclist" <thecyclist(a)gmail.com> wrote: > The subject line pretty much says it all. Is there a way to get MATLAB to > send an email using the Mac mail program? Yes, as Joshua said, use osascript to run an AppleScript. The script might look something like tell application "Mail" set msg to make new outgoing message with properties {visible:true, subject:"demo", content:"body of email"} tell msg make new to recipient with properties {name:"John Doe", address:"jdoe(a)whatever.com"} end tell send msg end tell (This may be wrapped.) -- Doug Schwarz dmschwarz&ieee,org Make obvious changes to get real email address.
|
Pages: 1 Prev: Creating a mesh Next: if all elements statement |