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


Click here to return to the 'Attach a file to a new Mail message from the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Attach a file to a new Mail message from the Terminal
Authored by: mat1 on Nov 22, '03 04:58:58AM

it doesn't open necessarily safari, it takes your default browser, for me these commands open OmniWeb.
even with -a Safari

to be sure it opens with safari :
osascript -e 'tell application "Safari" to activate' -e 'tell application "Safari" to make new document at beginning of documents' -e 'tell application "Safari" to set URL of document 1 to "http://...."'



[ Reply to This | # ]
Attach a file to a new Mail message from the Terminal
Authored by: Graff on Nov 24, '03 02:50:24PM

This is a little quicker: (all on one line)

osascript -e 'tell application "Safari" to make new document with properties {URL:"http://www.apple.com/"}'


[ Reply to This | # ]
Attach a file to a new Mail message from the Terminal
Authored by: Graff on Nov 24, '03 02:52:22PM

Hmm. I meant that to be in reply to mat1's osascript example. Dunno how it got tacked to the wrong thread, oh well...



[ Reply to This | # ]