Re: Checking for return at start of string (OS 10.1)
Re: Checking for return at start of string (OS 10.1)
- Subject: Re: Checking for return at start of string (OS 10.1)
- From: AppleScript Guru <email@hidden>
- Date: Fri, 05 Oct 2001 10:13:09 -0400
Simon,
on 10/5/01 5:40 AM, you said:
>
This one is starting to do my head in...
>
Doing some further processing, I want to check whether each item in the
>
list starts with a return. So:
This works for me...
set theList to {"drwx------ folder 5 Sep 19 15:07
~nethues_rw", "
drwx------ folder 4 Oct 03 10:51 ~noblesvenues", "
drwx------ folder 28 Sep 20 16:53 ~Regus", "
"}
set newList to {}
repeat with a from 1 to count theList
set cItem to item a of theList
set returnExists to cItem begins with return
set the end of newList to {cItem, returnExists}
end repeat
newList
-Ben
Benjamin S. Waldie
Write Track Media
(AppleScript GuRu)
AppleScript Web Site:
http://www.AppleScriptGuru.com