• 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: consolidate lists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >hdiutil problem (From: Luther Fuller <email@hidden>)
 >Re: hdiutil problem (From: Axel Luttgens <email@hidden>)
 >consolidate lists (From: Hudson Barton <email@hidden>)

  • Prev by Date: Re: consolidate lists
  • Next by Date: Re: Re1: Mail scripting : How to select… continuation...
  • Previous by thread: Re: consolidate lists
  • Next by thread: photoshop estimated document sizes
  • Index(es):
    • Date
    • Thread