Re: make a list
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>) |