Re: [OT] AppleScript scripts versus Shell scripts
Re: [OT] AppleScript scripts versus Shell scripts
- Subject: Re: [OT] AppleScript scripts versus Shell scripts
- From: Doug McNutt <email@hidden>
- Date: Wed, 15 Jan 2003 20:06:22 -0700
At 01:31 +0100 1/16/03, Philippe GRUCHET wrote:
>
I'd like to know what is the observed difference in speed when using an AppleScript script and the same in Shell language?
If you count the time spent reading the man pages vs decoding the dictionaries there is no question. My shell scripts often work the first time. My Applescripts absolutely never do.
Try an ftp using a shell script to access a remote site using UNIX ftp with its URL option and then try the same thing using URL Access Scripting. I'm running 5 to 1 in favor of the shell.
Try downloading the html code from a web site using AppleScript to access Internet Explorer and then try the same thing using curl.
There is simply no comparison. Shell scripts win every time. Besides that you can export them to a cheap Linux box and they'll run by themselves. Passing an AppleScript to another Mac is an exercise in frustration.
Now if your goal is to create a finder alias you're not going to get there so you really have to learn AppleScript. Ditto if you want to make a shell script double clickable. AppleScript is a better way to get there than adding a .command extension. If you want to script BBEdit you're stuck with AppleScript.
Sigh. You asked.
--
Applescript syntax is like English spelling:
Roughly, but not thoroughly, thought through.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.