Re: [TRTFM] Cocoa and AppleScript
Re: [TRTFM] Cocoa and AppleScript
- Subject: Re: [TRTFM] Cocoa and AppleScript
- From: Jeremy Dronfield <email@hidden>
- Date: Tue, 13 Aug 2002 18:03:51 +0100
On Tuesday, August 13, 2002, at 12:56 pm, Ian_atkinson wrote:
NSURL *url=[NSURL
URLWithString:@"mailto:email@hidden?subject=the subject"
]
;
[[NSWorkspace sharedWorkspace] openURL:url];
this is from memory... i think to add some text to the body you'll have
to
change the url string to
@"mailto:email@hidden?subject=the subject?body=the text you want to add"
but from memory i'm not sure.
That's spankingly gorgeous, and exactly what I was after. Thanks. Still
a slight problem, though. I can either get the subject OR the body
filled in with the above recipe, not both at once. Putting both in the
string results in a subject field that reads "the subject?body=the text
you want to add" and nothing in the body. Any ideas?
-Jeremy
=======================================
email@hidden // email@hidden
The Alchemy Pages:
- fractious fiction at
http://freespace.virgin.net/jeremy.dronfield
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.