• 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: make a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make a list


  • Subject: Re: make a list
  • From: Helmut Fuchs <email@hidden>
  • Date: Fri, 5 Dec 2003 18:55:33 +0100

Hi Sascha,

you can speed up your script considerably by not scanning for delimiters every time you need the next one.

set addressData to {}
set AppleScript's text item delimiters to return
set _lines to rest of text items of x -- remove "rest of" if you don't want to skip the first line
set AppleScript's text item delimiters to tab
repeat with _line in _lines
if (_line & "") is not equal to "" then
set _items to text items of _line
set _name to item 1 of _items & " " & item 2 of _items
set end of addressData to {_name, item 3 of _items, item 4 of _items, item 5 of _items}
end if
end repeat

HTH,

Helmut
_______________________________________________
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.

References: 
 >make a list (From: Sascha Kuehn <email@hidden>)

  • Prev by Date: Re: Simple substring help
  • Next by Date: using variables in place of property labels
  • Previous by thread: Re: make a list
  • Next by thread: Re: make a list
  • Index(es):
    • Date
    • Thread