RE: Simple substring help
RE: Simple substring help
- Subject: RE: Simple substring help
- From: Harald E Brandt <email@hidden>
- Date: Sat, 6 Dec 2003 16:56:55 +0100
+--> Michelle Steiner wrote 03-12-05:
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
+-
Just to make sure those copying the code above aren't mislead by the error:
Exchange the tid line to read:
set {tid, text item delimiters} to {text item delimiters, ":"}
--heb
_______________________________________________
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.