• 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: [OT] AppleScript scripts versus Shell scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >[OT] AppleScript scripts versus Shell scripts (From: Philippe GRUCHET <email@hidden>)

  • Prev by Date: Controlling Display with applescript?
  • Next by Date: Re: Changinge Applescript
  • Previous by thread: [OT] AppleScript scripts versus Shell scripts
  • Next by thread: Re: [OT] AppleScript scripts versus Shell scripts
  • Index(es):
    • Date
    • Thread