text manipulation in a script?
text manipulation in a script?
- Subject: text manipulation in a script?
- From: "Kinsella, John R." <email@hidden>
- Date: Sat, 14 Sep 2002 17:13:46 -0500
Can I manipulate a user defined variable (much like I would manipulate text
in a document. What I mean is, if a user gives me a variable like "left,
right, up, down" can I manipulate that an set it as a new variable for use
later in the script. In this example, maybe I'd manipulate it by taking
this variable, converting all the comma's to "-" and setting a new variable
of "left - right - up - down"
Now, I know I could write the user variable to a file, manipulate it and
then copy the result to a new variable, but I'm hoping this might be
possible without that step, just be able to do simple replaces within the
script
I'm not sure if I can even do this, so I thought I'd ask before I spent
hours on it.
Ideas? Suggestions?
John Kinsella
IRT-CS
University of St. Thomas
-------------
"The surest way to corrupt a youth is to teach him to hold in higher regard
those who think alike rather than those who think differently."
--Nietzsche
_______________________________________________
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.