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

Re: [MacPerl] Mac::Glue



>I think [the syntax] is reasonable.

Yeah, me too. It's really pretty AppleScript-like, if you take out all the
parens and brackets. It isn't entirely clear from the pod what object
contains what (since it uses the four-letter code for each object instead
of the object's name, and one has to go do a find for it), but other than
that I'm pretty happy with it.

I have another problem now: I can't get it to 'show' except if the record
is currently being displayed (i.e. it came up in a find request or I just
did a 'find all'). My AppleScript command works just fine, even when the
record isn't currently being displayed. So I figure I shouldn't need the
Find All in the first place, but can't figure out how to get by without it.
Here's the code I'm using for each:

---
$filemaker->show($filemaker->obj('records' => whose(AND =>
    ['cell' => 'id' => equals => $username],
    ['cell' => 'date' => equals => $date])));
- -
show (every record of database 1 whose cell "id" = username and cell "date"
= rdate)
---

So- even though it's slower, I've been trying to do a "Find All" (I don't
want to do a do_menu, for "that's cheezy"ness' sake). Nothing has worked
for that either, including this:

$filemaker->show( $filemaker->obj( records => gAll => document =>
'Database' ) );

I think the Find All issue might be related to what records are showing,
just like the show problem is.

>>>--
>>># Can't locate :auto:Mac:Glue:autosplit.ix in @INC.
>>>File 'corinth:Developing:MacPerl Ÿ:site_perl:AutoLoader.pm'; Line 106
>>>
>>>File 'corinth:Developing:MacPerl Ÿ:lib:Mac:Glue.pm'; Line 13
>>>--
>>>
>>I'd say you probably don't have glue installed properly, but that's just my
>>guess.
[snip]
>Not sure myself ... if the prefs were set up right to have site_perl first
>in @INC, then the install should work, though on older installers you
>needed to run the installer twice.  In any event, site_perl had to be first
>in @INC.

Well, I uninstalled it manually and reinstalled it from the .tar instead of
the untarred directory, and it liked that better, I guess. That broke
something in DB_File, but I think that was my fault for a half-finished
CPAN install of its newer version, and was easily fixed.

strider

PS- I was just thinking... it'd be really cool to have a script that'd take
an AppleScript for a certain program and, using its glue, translate that
into AppleEvents. Out of my league in time ( and maybe ability ;), but
that'd be a cool project if someone wanted one.


--

  |
--+--       A thing is worth what someone is willing to pay for it.
  |
  |



===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org