• 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: Jaime Magiera <email@hidden>
  • Date: Fri, 10 Jan 2003 13:18:40 -0500

On Thursday, January 9, 2003, at 07:51 PM, has wrote:

Any names? (Only ones I know of are XML Tools - pretty powerful, but outputs skanky list-n-record data structures - and my very incomplete,

I don't mind working with these structures. It's kinda like Key-Value coding in Cocoa/WO. There are some definite advantages, with a few disadvantages.

non-industrial-strength attempt at a SAX-like library. If there's others, I'd be interested for details.)

I usually suggest XML tools, because I support small companies. I'll hunt down any others I've seen.

Also, it wouldn't be that hard to write a parser just by
tweaking the HTML parsing code from the GuideBook.

Step 1. Take Guidebook example.
Step 2. Toss Guidebook example in bin.
Step 3. Write a proper parser in AppleScript.
Step 4. Discover it's much harder to do than it sounds.
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.

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).

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.

I'm booked until April right now (doing P2P SOAP stuff in WO and Cocoa), however, I'd be willing to bet you I can write a reasonable parser from plain vanilla. Wanna make a wager?

Jaime
_______________________________________________
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: Paul Berkowitz <email@hidden>
References: 
 >Re; Keynote, is it scriptable (XML?) -addendum (From: has <email@hidden>)

  • Prev by Date: Re: script runs on 9.X but not on 7.6.1
  • Next by Date: Re: Safari, or, really Navigator
  • 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