Re: Editing text returned
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.