|
|
open -a Mail
I guess you meant to write:
open -a mail [filename]
Come to think of it, it's rather obvious, but I never thought about this. Unfortunately, it seems to attach multiple files to multiple messages, as in GUI:
open -a mail [filename1] [filename2]
(Creates two new messages)
open -a Mail
Any way to pass other parameters such as to, subject, etc.
open -a Mail
Not with "open". You're better off using AppleScript for this sort of thing. You can use the "osascript" command to run arbitrary scripts from the command line. Apple has a good script for this in a Q&A document, but if you want something quick, you might try something like this:
This will create a new message, but it won't send it. If you want to send the message automatically, change "set visible to true" to "send".
mailto:
Well, if Mail.app's your default mailreader, it accepts mailto: links so maybe there's a way to do this using a browser...
Yup, it works: open -a Safari mailto:[address]
mailto:
Well, if Mail.app's your default mailreader, it accepts mailto: links so maybe there's a way to do this using a browser...
Yup, it works: open -a Safari mailto:[address]
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.06 seconds |
|