Re: Count in Filemaker Pro
Re: Count in Filemaker Pro
- Subject: Re: Count in Filemaker Pro
- From: dave dowling <email@hidden>
- Date: Thu, 24 Oct 2002 17:26:43 -0400
Craig,
Numerous AS commands were broken by 10.2, so I've heard. You might try
creating a calculation field or setting a global field in FMP using the
calculation:
PatternCount(DatabaseNames, "6") + 1
, then setting your AS variable with this field value.
Using this technique, the following scriptlet works fine for me in FMP
5.5v2 under OS 10.2.1:
tell application "FileMaker Pro"
-- note: aaa.test is the calc field defined above
set databaseCount to cell "aaa.test"
end tell
Some things to consider: FileMaker's AS library allows access to FMP's
features. If there's a way to do it using AS, there's likely a
workaround, or a more reliable method, within FMP. It makes for more
overhead in your FMP files, but you might look for these kinds of
alternatives as you find broken AS functionality. Doing as much as you
can in FMP is not a bad idea, as FMP's internal features are more
likely to remain functional in new releases, even if external API
functionality lags. For this reason, you might consider only using AS
for things you can't accomplish in FMP.
Hope this helps.
On Thursday, October 24, 2002, at 05:14 AM, Craig Taylor wrote:
I have the following statement in a script which has always worked in
OS 9
and Filemaker Pro 5.x. I have just try running the same script in OS
10.2
with same version of Filemaker and I get an object not found error?
tell application "FileMaker Pro"
set databaseCount to count of documents
end tell
Thanks
Craig
--
Craig Taylor
IT Director
Forward Ltd
84-86 Regent Street
London
W1B 5DD
Telephone: +44 (0)20 7734 2303
Fax: +44 (0)20 7494 2570
http://www.theforwardgroup.com
***********************************************************************
Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of
Forward Ltd
***********************************************************************
_______________________________________________
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.
thanks.
dave dowling
Free at last! How I found peace with God:
http://www.davedowling.com/steps.html
_
_______________________________________________
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.