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

Re: Script Libraries


  • Subject: Re: Script Libraries
  • From: Jim Underwood <email@hidden>
  • Date: Sun, 19 Jun 2016 17:49:40 +0000
  • Thread-topic: Script Libraries

Shane,

Is it better to use
tell sortLib to quickSort(resultsList)

Than
quickSort(resultsList) of sortLib
Or
sortLib's quickSort(resultsList)

Or, are all 3 equally recommended?
Does it just come down to personal preference?

Best Regards,

Jim Underwood
aka JMichaelTX


From: <applescript-users-bounces+jmichael=email@hidden> on behalf of Shane Stanley <email@hidden>
Date: Fri, Jun 17, 2016 at 9:08 AM
To: "ASUL (AppleScript)" <email@hidden>
Subject: Re: Script Debugger 6 Officially Released

And better to use:

use scripting additions
use sortLib : script "sorted"

set resultsList to {"d", "a", "b"}
tell sortLib to quickSort(resultsList)

 _______________________________________________
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

  • Follow-Ups:
    • Re: Script Libraries
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: PDF vs. HTML documentation
  • Next by Date: Re en-dash and em-dash
  • Previous by thread: Re: en-dash, em-dash, and the like obtained from Safari tab names
  • Next by thread: Re: Script Libraries
  • Index(es):
    • Date
    • Thread