Re: Super slow 'do shell script' command OS X 10.11 vs 10.8
Re: Super slow 'do shell script' command OS X 10.11 vs 10.8
- Subject: Re: Super slow 'do shell script' command OS X 10.11 vs 10.8
- From: Shane Stanley <email@hidden>
- Date: Wed, 22 Feb 2017 09:51:49 +1100
On 22 Feb 2017, at 9:22 am, Jim Skibbie <email@hidden> wrote:
>
> Has anyone noticed that the "do shell script” command in OS X 10.11 is sometimes between 2-6x slower than it was in OS X 10.8?
>
> If I run this script in Script Debugger on OS X 10.8, I get a result of 3-4 seconds. In Script Debugger on OS X 10.11, I get a result of 7-8 seconds. On some user accounts, it can take up to 20-30 seconds.
For a variety of reasons, you shouldn't pay much attention to such timings made in any script editor -- for one thing, the monitoring of events so they can be logged can add considerable overhead. This particularly affects 'do shell script'.
Save your script as an applet or run it from a script menu -- you will see a very different result. On my Mac, the time drops to about 1-2 seconds.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
_______________________________________________
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