Re: consolidate lists
Re: consolidate lists
- Subject: Re: consolidate lists
- From: Ed Stockly <email@hidden>
- Date: Mon, 19 May 2008 08:07:14 -0700
Interesting structure. I don't really understand the concept of
"my", but it works.
The "my" is a habit. It makes appleScript direct the handler call
to the script itself, which is needed only when the command is within
a "tell application foo" block. It the handler call were within a
tell block, applescript would send them as commands to the
application, which wouldn't understand them and throw an error. In
this case, it's not needed because the calls are not inside a tell
block, but I use it by habit, and that doesn't hurt anything.
Question: The last item of each processedList is repeated so that
the last entry is a duplicate. I can of course cut off the
duplicate, but how can I not create it in the first place?
Good question. The duplicates are a silly mistake.
Change these lines at the beginning of the script:
set the end of processedLists to my ProcessList(List1)
set the end of processedLists to my ProcessList(List2)
To this:
my ProcessList(List1)
my ProcessList(List2)
HTH,
ES
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden