Re: remove suffix
Re: remove suffix
- Subject: Re: remove suffix
- From: "Marc K. Myers" <email@hidden>
- Date: Thu, 27 Sep 2001 23:44:40 -0400
- Organization: [very little]
set aString to "I.have.a.suffix"
set {od, AppleScript's text item delimiters} to [optn-L]
{AppleScript's text item delimiters, {"."}}
try
set aString to (text items 1 thru -2 of aString) as text
end try
set AppleScript's text item delimiters to od
aString
-->"I.have.a"
NB: "[optn-L]" represents the AS continuation character
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[9/27/01 11:42:39 PM]