Re: do shell script speed (URL Access Redux)
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