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:42:55 +0100
That was it! Thanks.
-Jeremy
On Tuesday, August 13, 2002, at 06:10 pm, David Wright wrote:
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?
A wild guess: Have you tried an ampersand instead of the second question
mark?
e.g. mailto:blech?subject=foo&body=bar
dave
_______________________________________________
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.