• 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: Editing text returned
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Editing text returned


  • Subject: Re: Editing text returned
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 10 Jul 2003 08:59:51 -0700

On Thursday, July 10, 2003, at 07:13 AM, Courtney Moore wrote:

Problem: I ask the user what is there starting address. I want to take
their returned text and add "+" in-between each space, and then set the
result to a Variable.

I can do everything except the editing of their returned text. Anyone know
how to do this?

It's easy; I don't know exactly what you mean by "add '+' in-between each space" though. Assuming that you mean to change each space to " + ", here is a solution:

set foo to text returned of (display dialog "Enter your answer here." default answer "")
set text item delimiters to space
set bar to text items of foo
--set text item delimiters to " + " --alternatively space & "+" & space
set foo to bar as text

--Michelle

--
"Beware the march of ideas."
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Editing text returned (From: Courtney Moore <email@hidden>)

  • Prev by Date: Re: open location...
  • Next by Date: Re: open location...
  • Previous by thread: Editing text returned
  • Next by thread: Path to opened FM database
  • Index(es):
    • Date
    • Thread