• 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: Re; Keynote, is it scriptable (XML?) -addendum
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re; Keynote, is it scriptable (XML?) -addendum


  • Subject: Re: Re; Keynote, is it scriptable (XML?) -addendum
  • From: Paul Berkowitz <email@hidden>
  • Date: Sat, 11 Jan 2003 00:28:42 -0800

On 1/10/03 10:18 AM, "Jaime Magiera" <email@hidden> wrote:

>> Step 5. Find finished script (if you actually get this far) is
>> woefully slow.
>> Step 6. Use Perl or Python instead.
>
> No offense man, but that's crap. For a couple reasons...
>
> A. People use Applescript because it's human readable and easy to
> understand. Perl looks like a typewriter exploded, scattering random
> gibberish across the page.

Python is very readable, and actually quite similar in many ways to
AppleScript. Also, like Perl, about 100-1000 times faster for text iterating
than AppleScript.
>
> B. If you're integrating xml parsing features WITH application control,
> Applescript is the most powerful choice (i.e. you can't control an
> application from Perl or Python).

But you can include either Perl or Python in an Applescript by embedding it
inside a 'do shell script' or running a .py script (e.g.). You get the best
of both worlds that way.
>
> C. Applescript is portable across the Mac OS. A script with a plain
> vanilla parser (or an installer for an OSAX) has a better chance of
> running on the various system configurations out there. If you're
> writing Applescripts that will be distributed to clients, this is
> important.

Not for much longer. Perl has been built into the OS since OS 10.1 and
Python since 10.2. And most AppleScripts now can't "just work" OS 8 -
10.2.3. More often than not, the apps you'd be scripting are different
across the X divide as well. If people using OS X can have a version 1000
times faster than those in OS 8, you'd be silly not to provide it rather
than keep the fusty version for the sake of compatibility, IMO.


--
Paul Berkowitz
_______________________________________________
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.

  • Follow-Ups:
    • Re: Re; Keynote, is it scriptable (XML?) -addendum
      • From: Jaime Magiera <email@hidden>
References: 
 >Re: Re; Keynote, is it scriptable (XML?) -addendum (From: Jaime Magiera <email@hidden>)

  • Prev by Date: Re: Re; Keynote, is it scriptable (XML?)
  • Next by Date: Re: Safari again
  • Previous by thread: Re: Re; Keynote, is it scriptable (XML?) -addendum
  • Next by thread: Re: Re; Keynote, is it scriptable (XML?) -addendum
  • Index(es):
    • Date
    • Thread