• 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: Security Update [Was: Re: Script Library Search Order]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Security Update [Was: Re: Script Library Search Order]


  • Subject: Re: Security Update [Was: Re: Script Library Search Order]
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 27 Jan 2016 23:11:43 +1100

On 26 Jan 2016, at 1:20 PM, has <email@hidden> wrote:

I'm not looking for performance issues in the library loader

FWIW, I just did a quick-and-dirty test. I copied the lib in Apple Configurator, named it 'Configuration Utility2', and put it in ~/Library/Script Libraries. I then ran this:

use framework "Foundation"
set script1 to "tell script \"Configuration Utility\"" & linefeed & "CNFGgetHandlers()" & linefeed & "end tell"
set script2 to "tell script \"Configuration Utility2\"" & linefeed & "CNFGgetHandlers()" & linefeed & "end tell"
set theDate to current application's NSDate's |date|()
run script script1
set time1 to theDate's timeIntervalSinceNow()
run script script2
set time2 to theDate's timeIntervalSinceNow()
return {-time1, time1 - time2}

The first time I ran it, I got roughly {6.6, 0.3}. Subsequent runs, recompiling each time to force a new component instance, returned roughly equal times for both, around 0.05. Quitting Script Editor and relaunching it bumped it to around {0.4, 0.05} for the first time. 

Recent but not the latest iMac, Fusion drive, too many apps..

-- 
Shane Stanley <email@hidden>
<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

References: 
 >Re: Security Update [Was: Re: Script Library Search Order] (From: has <email@hidden>)
 >Re: Security Update [Was: Re: Script Library Search Order] (From: Chris Page <email@hidden>)
 >Re: Security Update [Was: Re: Script Library Search Order] (From: has <email@hidden>)
 >Re: Security Update [Was: Re: Script Library Search Order] (From: Chris Page <email@hidden>)
 >Re: Security Update [Was: Re: Script Library Search Order] (From: has <email@hidden>)

  • Prev by Date: Re: Displaying UI in AppleScriptObjC scripts (was Re: How to Run a "sudo" Terminal Command)
  • Next by Date: Re: Displaying UI in AppleScriptObjC scripts (was Re: How to Run a "sudo" Terminal Command)
  • Previous by thread: Re: Security Update [Was: Re: Script Library Search Order]
  • Next by thread: Odd Speed Issue with choose folder
  • Index(es):
    • Date
    • Thread