• 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: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.

  • Follow-Ups:
    • Re: [TRTFM] Cocoa and AppleScript
      • From: David Wright <email@hidden>
References: 
 >Re: [TRTFM] Cocoa and AppleScript (From: Ian_atkinson <email@hidden>)

  • Prev by Date: Re: Partially select texts in NSTextField
  • Next by Date: Re: [TRTFM] Cocoa and AppleScript
  • Previous by thread: Re: [TRTFM] Cocoa and AppleScript
  • Next by thread: Re: [TRTFM] Cocoa and AppleScript
  • Index(es):
    • Date
    • Thread