[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] MacPerl & Frontier



Peter Chen <Peter.Chen@hochem.nl> writes:
>What I'm missing now is the exact syntax for
>constructing a descriptor string that does the equivalent of SQL "where"
>clause or AppleScript's "whose" clause.

That's indeed a good question. AppleEvent Object Descriptor syntax would be
a good candidate for a perl library. However, I haven't yet come up with
a representation that is:

 - Extensible
 - Name space clean
 - Fast

The ultimate objective would be to be able to record & translate AppleEvents
(based on Jack Jansen's Python work) into something like:

$fm = new Mac::AppleEvents::FileMaker;

$fm->open("my:database:file");
$fm->close(
    $fm->object("Window", 1),
    'saving', 'no');

The translation of event names into Perl is fairly natural, but it's not
so clear with the parameters and AppleEvent objects.

Suggestions?
Matthias

-----
Matthias Neeracher   <neeri@iis.ee.ethz.ch>   http://www.iis.ee.ethz.ch/~neeri
            "Perhaps you've been smoking too much Perl?"
                -- Dave Brown <dagbrown@calum.csclub.uwaterloo.ca>