• 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: Super slow 'do shell script' command OS X 10.11 vs 10.8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Super slow 'do shell script' command OS X 10.11 vs 10.8
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Scripting Better Applescript support requests !
  • Next by Date: Re: Scripting Better Applescript support requests !
  • Previous by thread: Re: Super slow 'do shell script' command OS X 10.11 vs 10.8
  • Next by thread: Re: Super slow 'do shell script' command OS X 10.11 vs 10.8
  • Index(es):
    • Date
    • Thread