• 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: Getting record items of a sublist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting record items of a sublist


  • Subject: Re: Getting record items of a sublist
  • From: Shane Stanley <email@hidden>
  • Date: Tue, 01 Nov 2011 13:04:26 +1100


On 01/11/2011, at 11:40 AM, Stan Cleveland wrote:

Of course, one would expect an osax to be faster than a call to do shell script.

FWIW, I suspect the time Alex's test takes is more to do with what it *uses/does* in the shell than the overhead of the call to do shell script itself, which takes much less time than the figures Chris and Alex have posted. I did a test calling out to an app for comparison:

script getInterval
return current application's NSDate's timeIntervalSinceReferenceDate()
end script

tell application "ASObjC Runner"
set myResult to run the script {getInterval} with result returned
set myNewResult to run the script {getInterval} with result returned
end tell
set myAnswer to (myNewResult - myResult)
log myAnswer

On my iMac, that gives times around 0.0011 seconds in ASE.

-- 
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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: Getting record items of a sublist
      • From: Alex Zavatone <email@hidden>
References: 
 >Re: Getting record items of a sublist (From: Nigel Garvey <email@hidden>)
 >Re: Getting record items of a sublist (From: Alex Zavatone <email@hidden>)
 >Re: Getting record items of a sublist (From: Christopher Stone <email@hidden>)
 >Re: Getting record items of a sublist (From: Alex Zavatone <email@hidden>)
 >Re: Getting record items of a sublist (From: Stan Cleveland <email@hidden>)

  • Prev by Date: Re: Getting record items of a sublist
  • Next by Date: Re: Getting record items of a sublist
  • Previous by thread: Re: Getting record items of a sublist
  • Next by thread: Re: Getting record items of a sublist
  • Index(es):
    • Date
    • Thread