• 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: Determining item number matching "x" in a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining item number matching "x" in a list


  • Subject: Re: Determining item number matching "x" in a list
  • From: Paul Skinner <email@hidden>
  • Date: Sun, 16 Mar 2003 10:29:46 -0500

On Saturday, March 15, 2003, at 07:29 PM, Nigel Garvey wrote:

John Delacour wrote on Sat, 15 Mar 2003 13:10:09 +0000:

At 2:51 am +0000 15/3/03, Nigel Garvey wrote:


Well. After all the discussion, I just had to compare the two myself on my own Pismo 400MHz. Necessarily, this was in 9.2.2 in order to use 'the ticks'. (The handlers themselves aren't shown shown in this test code)...

You can use GetMilliSec or Jon's Commands.osax in OS 10

Thanks for the info. I've only had OS X installed for about three or four weeks and haven't got it fully set up and sorted out yet.

I really don't see the point of messing about with straight AppleScript when we have had perl as a resource on the Mac for years. MacPerl can just sit in the background as a resource and do just what perl does in OS 10. I can euqally well use MacPerl in Classic as perl.

I consider perl and macPerl and 'do shell script' to be straight AppleScript. Same as scripting the Finder. These are apps.

I don't know about Emmanuel or Steve, but I'm still messing about with the AppleScript alternatives here because the name of this list is explicitly "AppleScript Users", not "Perl Users". Your shell scripts are no doubt eminently practical and speedy solutions for people who just want to be given scripts for particular jobs; but for those seeking to understand the pros and cons of various techniques in AppleScript, a few unexplained lines of Perl will do little to empower them. Since I haven't seen any objections to the use of Perl on this list, I conclude that both approaches are generally welcome.

NG

True! I personally REALLY appreciate John's posts that provide perl code. Even the perl guy at the office can't give me the concise, AppleScript-hybridized code that John posts. Please post more John! I'm particularly interested in improving the methods for passing AS data into and out of DSS for use with perl and shell-based handlers.
I realize that there's a difference in developing solutions that make no calls outside the core language and are extremely optimized (for AppleScript). I enjoy that too.
However, when I want to parse a 400MB DB export into FMP I really don't care what technology finds an item in that data. I just want the index.
As long as I can dip into the perl pool only long enough to code the routine and wrap it up in a handler, I can then usee it from the comfort of AppleScript without anf of the pokey bits getting me. : )
As an aside, I was having a bit of a problem with a script that uses a quicksort variation that I built when that went around on the list. I decided to DL quicksort and see if it had the same issue. No. But, OH MY GOD! What happened to quicksort? If I was a novice scripter and I looked at that thing I'd freak! Sure it's optimized and has various weightings and a 'dutch flag' variant!? But wooo-wee...
Do an asciisort with perl, just a straight-forward simple, unoptimized sort, and it beats quicksort like a pinata. with only a few lines of code.
I see this as a simple choice for a scripter. 'Which program do I want to script to get this task done?'

Paul Skinner
_______________________________________________
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: 
 >Re: Determining item number matching "x" in a list (From: Nigel Garvey <email@hidden>)

  • Prev by Date: help converting URL to alias for OmniGraffle
  • Next by Date: Re: Determining item number matching "x" in a list
  • Previous by thread: Re: Determining item number matching "x" in a list
  • Next by thread: Re: Determining item number matching "x" in a list
  • Index(es):
    • Date
    • Thread