RE: Simple substring help
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.