• 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: do shell script speed (URL Access Redux)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do shell script speed (URL Access Redux)


  • Subject: Re: do shell script speed (URL Access Redux)
  • From: Emmanuel <email@hidden>
  • Date: Thu, 25 May 2006 09:14:07 +0200

At 4:57 PM -0700 5/24/06, Andrew Oliver wrote:
On May 24, 2006, at 4:46 PM, Emmanuel wrote:

I recall that do shell script's AppleScripty competitor, that is, having Terminal run in the background and scripting it, may make an efficient solution.

I report a quick test with "ls":

do shell script "ls"
 --  24 ms

tell application "Terminal" to do script "ls ../../ > a" in window 1
read alias "emmanuel's hd1T:Users:emmanuel:a" as «class utf8»
[...]

Don't be misled with those timings.

'tell application 'Terminal" to do script..' times ONLY the amount of time it takes AppleScript to pass the event to Terminal.app. There is no waiting for the command to execute, no callback and there's no indication as to the success (or otherwise) of the command.

OOPS!

I'm sorry, please discard my stoopid suggestion above, I wasn't aware of that. Thanks Andrew.

Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: URL Access Redux (From: Timothy Bates <email@hidden>)
 >Re: URL Access Redux (From: Roger Howard <email@hidden>)
 >Re: URL Access Redux (From: Emmanuel <email@hidden>)
 >Re: do shell script speed (URL Access Redux) (From: Christopher Nebel <email@hidden>)
 >Re: do shell script speed (URL Access Redux) (From: Emmanuel <email@hidden>)
 >Re: do shell script speed (URL Access Redux) (From: Andrew Oliver <email@hidden>)

  • Prev by Date: terminal does not react
  • Next by Date: Error in script
  • Previous by thread: Re: do shell script speed (URL Access Redux)
  • Next by thread: Label info from mounted servers
  • Index(es):
    • Date
    • Thread