• 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: cocoa-dev digest, Vol 2 #2393 - 12 msgs [Programmatically Filling In Body of E-Mail Message]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cocoa-dev digest, Vol 2 #2393 - 12 msgs [Programmatically Filling In Body of E-Mail Message]


  • Subject: Re: cocoa-dev digest, Vol 2 #2393 - 12 msgs [Programmatically Filling In Body of E-Mail Message]
  • From: Rolf <email@hidden>
  • Date: Tue, 27 May 2003 20:32:31 +0200

Hi,

The URLWithString expects URLString to contain any necessary percent escape codes, which are ':', '/', '%', '#', ';', and '@'. How does one enocde a standard NSString (taken from for example a NSTextView) into a correctly formatted URLString ?

/Rolf

[[NSWorkspace sharedWorkspace] openURL ...


27.05.2003 19:46:36, skrev "Erik J. Barzeski" <email@hidden>:

>Hi,
>
>How about this:
>
>[NSWorkspace openURL:[NSURL
>URLWithString:@"mailto:email@hidden?subject=Hi Dude&body=This is an e
>mail."]];
>
>
>On 5/27/03 1:22pm, "email@hidden"
><email@hidden> wrote:
>> From: Henry McGilton <email@hidden>
>> Date: Tue, 27 May 2003 09:26:29 -0700
>> To: email@hidden
>> Subject: Programmatically Filling In Body of E-Mail Message
>>
>> I know how to use NSWorkSpace's openURL method to pop up a
>> Mail compose window with the recipient and subject filled in.
>>
>> I would also like to be able to fill in the body of the E-Mail.
>> My immediate need is to programmatically place an attachment
>> into the body of the E-Mail.
>>
>> Anybody have any ideas on this? Is there possibly some
>> AppleScript interface for this?
>>
>> I used to be able to set the body of an E-Mail message in
>> NextStep days.
>>
>> Cheers,
>> ........ Henry
>>
>> ===============================+============================
>> Henry McGilton, Boulevardier | Trilithon Software
>> Objective-C/Java Composer | Seroia Research
>> -------------------------------+----------------------------
>> mailto:email@hidden | http://www.trilithon.com
>> |
>> ===============================+============================
>
>--
> Kindest regards,
> Erik J. Barzeski
>
>There are no such things as stupid questions,
>just stupid people that ask questions.
>###################################################################
>Email: erik@(anything below) AIM: iacas, email@hidden
>
>http://nslog.com http://cocoadevcentral.com
>http://barzeski.com/ http://freshlysqueezedsoftware.com
>###################################################################
>_______________________________________________
>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.
_______________________________________________
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: [Programmatically Filling In Body of E-Mail Message]
      • From: "Erik J. Barzeski" <email@hidden>
References: 
 >Re: cocoa-dev digest, Vol 2 #2393 - 12 msgs (From: "Erik J. Barzeski" <email@hidden>)

  • Prev by Date: Re: cocoa-dev digest, Vol 2 #2393 - 12 msgs
  • Next by Date: Custom header for NSTableView
  • Previous by thread: Re: cocoa-dev digest, Vol 2 #2393 - 12 msgs
  • Next by thread: Re: [Programmatically Filling In Body of E-Mail Message]
  • Index(es):
    • Date
    • Thread