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: Jim Skibbie <email@hidden>
- Date: Thu, 23 Feb 2017 15:04:07 +0000
- Thread-topic: Super slow 'do shell script' command OS X 10.11 vs 10.8
It’s parses an MIS system and builds out a JDF (xml) file to pass to
another system. Some of the do shell scripts run curl commands to make
HTTP requests, so I don’t think those can go away. However, some of the
other do shell script commands shell out a string and a regular expression
to a ruby script to get back whether there is a match and if there is a
match, the capture groups. For example: a regular expression /(x)(y)(z)/
and the string ‘xyz’ would return {true, ‘x’, ‘y’, ‘z’}. I wish there was
built-in support for RegExp in Applescript, and there probably is in
ASObj-C, but I have to support machines from 10.6 to present day OS.
Thanks.
Jim
Shane Stanley wrote:
>It's quite possible it's a bit slower -- and it's also possible the
>particular shell tools you're using are slower because of increased
>security overhead involved in running them on more recent systems.
>
>But I wonder if you're doing stuff that might be more quickly done
>without the overhead of launching a new process what I presume is
>thousands of times.
>
>What does the script do?
_______________________________________________
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