currently, have mail rule forwards emails me, via sms text.
comes on unformatted text, ugly , hard read.
applescript send me text has , subject. once see that, can rest form iphone. don't want miss these emails.
need script can "read" from, subject, sent_time , sent_date. that, can create new email (assuming figure out how) , send phone.
has written script?
so got work in applescript editor:
but cannot work via rule:code:tell application "mail" set newmsg make new outgoing message set content of newmsg "test message mail2text.scpt" set sender of newmsg "someone" set subject of newmsg "test" tell newmsg make new recipient @ end of recipients properties {address:"mynumber@txt.att.net"} send end tell --set visible of newmsg true --display dialog thecontent --say thecontent end tell
code:using terms application "mail" on perform mail action messages theselectedmessages rule therule tell application "mail" repeat eachmessage in theselectedmessages tell eachmessage set f sender of eachmessage set s subject of eachmessage set ds date sent of eachmessage set dr date received of eachmessage --say thecontent --display dialog thecontent set newmsg make new outgoing message set sender of newmsg f set subject of newmsg s set content of newmsg "message from" & sender & " sent:" & date sent & ", received:" & date received tell newmsg make new recipient @ end of recipients properties {address:"mynumber@txt.att.net"} send end tell --set visible of newmsg true --display dialog thecontent --say thecontent end tell end repeat end tell end perform mail action messages end using terms from
Forums Macs Mac Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
No comments:
Post a Comment