• 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: Simple substring help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Simple substring help


  • Subject: RE: Simple substring help
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 5 Dec 2003 10:29:51 -0700

On Dec 5, 2003, at 10:06 AM, Wade Williams wrote:

set string1 to "MyHD:Folder:SubFolder:File:"

what's the easiest way to accomplish chopping off the "File:" at the end?

set string1 to "MyHD:Folder:SubFolder:File:"
set {tid, text item delimiters} to {":", text item delimiters}
set string1 to (text items 1 through -3 of string1 as text) & ":"
set text item delimiters to tid
string1

--> "MyHD:Folder:SubFolder:"


--
Never play strip Tarot.
_______________________________________________
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.

  • Follow-Ups:
    • To err on the exit code of the FIRST cmd of a piped do shell script
      • From: Harald E Brandt <email@hidden>
    • RE: Simple substring help
      • From: Harald E Brandt <email@hidden>
    • re:tort
      • From: Gary Lists <email@hidden>
  • Prev by Date: RE: scripts work under 9.2, not 9.1
  • Next by Date: Re: Simple substring help
  • Previous by thread: Re: Simple substring help
  • Next by thread: re:tort
  • Index(es):
    • Date
    • Thread