• 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: Checking for return at start of string (OS 10.1)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Checking for return at start of string (OS 10.1) (From: Simon Forster <email@hidden>)

  • Prev by Date: Eject CD script error in Multi Users Panels account
  • Next by Date: Eject CD script error in Multi Users Panels account
  • Previous by thread: Checking for return at start of string (OS 10.1)
  • Next by thread: Checking for return at start of string (OS 10.1)
  • Index(es):
    • Date
    • Thread