• 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: remove suffix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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]


  • Prev by Date: Re: Barriers to Applescript adoption
  • Next by Date: Re: cgi's /scripts not handling the first event passed to them
  • Previous by thread: RE: remove suffix
  • Next by thread: RE: remove suffix
  • Index(es):
    • Date
    • Thread