• 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: how to convert *space* to
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to convert *space* to


  • Subject: Re: how to convert *space* to
  • From: Deivy Marck Petrescu <email@hidden>
  • Date: Sun, 1 Nov 2009 10:06:21 -0500


On Nov 1, 2009, at 03:51, CJ Kelley wrote:

Hi all,

I am writing an applescript application that will send an http request to the Alice bot. My question is, how do i convert a space to ?

If i send a message like this:

"Hello Alice"

I get "400 - Bad Request"

Thanks in advance!
--CJ

--


An AS strict solution

<script>
encode("Hello Alice", space, " ")

on encode(x, y, z)
	tid(y)
	set x to text items of x
	tid(z)
	return x as string
end encode

on tid(x)
	set AppleScript's text item delimiters to x
end tid
</script>
-->"Hello Alice"


Deivy Petrescu email@hidden





_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >how to convert *space* to (From: CJ Kelley <email@hidden>)

  • Prev by Date: Re: Encoding text file to write XML
  • Next by Date: Fwd: can't make {to recipient} from {get recipient of theMessage}
  • Previous by thread: Re: how to convert *space* to
  • Next by thread: Re: how to convert *space* to
  • Index(es):
    • Date
    • Thread