Re: Removing characters from a string
Re: Removing characters from a string
- Subject: Re: Removing characters from a string
- From: John Delacour <email@hidden>
- Date: Mon, 4 Nov 2002 14:51:41 +0000
- Mac-eudora-version: 5.3a8
At 4:48 pm -0500 29/10/02, Paul Skinner wrote:
if length of (n as string) is greater than 32 then set n to (n as
string)'s text 1 thru 32
In the interests of brvty.... it is unnec to chck the len, and this will do:
set n to text 1 thru 32 of ("" & n)
JD
set s to "this/might not.be a legal:name, then again, it could be."
do shell script "perl -e '$_ = qq~" & s & "~; s~\\.|,|:|/~~g; print'"
text 1 through 32 of result
_______________________________________________
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.