• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [TRTFM] Cocoa and AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: [TRTFM] Cocoa and AppleScript (From: David Wright <email@hidden>)

  • Prev by Date: Using bundles
  • Next by Date: Re: Variable argument list not working
  • Previous by thread: Re: [TRTFM] Cocoa and AppleScript
  • Next by thread: NSURL, NSURLHandle, Proxies and Jaguar
  • Index(es):
    • Date
    • Thread