Re: Extracting from text [Lecture]
Re: Extracting from text [Lecture]
- Subject: Re: Extracting from text [Lecture]
- From: Arthur J Knapp <email@hidden>
- Date: Thu, 28 Feb 2002 15:57:17 -0500
>
Subject: Extracting from text [Lecture]
>
Date: Thu, 28 Feb 2002 18:29:02 +0000
>
From: Nigel Garvey <email@hidden>
>
Apologies for this. :-)
Yeah, no problem... Mom. ;-)
>
set AppleScript's text item delimiters to {":"}
>
set parentPath to (text items 1 thru -3 of folderPath) as string
>
... but its use does seem to
>
suggest that the authors don't know about the equivalent 'text'
>
construction, which is (in its simplest form):
>
>
text 1 thru text item -3 of folderPath
Good stuff, Nigel. :)
I thought I might chime in by pointing others to Bill Cheeseman's
excellent discussion of "range" references. Quick, what's the
difference between these four statments? :
words from paragraph 2 to paragraph 4
words of paragraphs 2 thru 4
text from paragraph 2 to paragraph 4
text of paragraphs from 2 to 4
<
http://www.AppleScriptSourcebook.com/tips/gotchas/ranges.html>
>
set t to "'Antidisestablishmentarianism' is a long word"
"Tory" is a much shorter word... ;-)
>
And finally, of course, for those who prefer, the Saxon genitive can be
>
used in place of 'of'.
For Americans who may be confused, he is referring to the apostrophe-s,
and not to the biology of saxophones.
;-)
{ Arthur J. Knapp, of <
http://www.STELLARViSIONs.com>
<
mailto:email@hidden>
try
<
http://homepage.mac.com/kshook/applescript.html>
on error number -128
end try
}
_______________________________________________
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.