Re: FMP 6.0v3, OS X 10.2 and AppleScript -> Broken
Re: FMP 6.0v3, OS X 10.2 and AppleScript -> Broken
- Subject: Re: FMP 6.0v3, OS X 10.2 and AppleScript -> Broken
- From: Mr Tea <email@hidden>
- Date: Wed, 18 Sep 2002 16:22:28 +0100
This from Simon Forster - dated 18-9-02 01.47 pm:
>
I have tested this on 3 machines and it would appear that Mac OS X
>
10.2, FMP 6.0v3 and AppleScript do not play well together. The problem
>
seems to centre around "count" and can be neatly demonstrated by the
>
simple AppleScript:
>
>
tell application "FileMaker Pro" to return count of windows
>
>
Using Mac OS X 10.1.x and FMP 6.0v3, this returns the number of open
>
FileMaker databases (windows) as you'd expect. Under Mac OS X 10.2 it
>
throws an error: "FileMaker Pro got an error: Object not found." The
>
reason for pointing the finger at "count" is that a count of anything
>
(fields and databases actually tested) returns the same error.
Have you tried:
tell application "FileMaker Pro" to return count of (get windows)
...or writing the list of windows to a variable first?
tell application "FileMaker Pro"
set fenestrations to every window
count of fenestrations
end tell
This coercive extra step seems to be necessary all over the shop in more
recent versions of AS.
Mr Tea
--
Brew of the day: Twinings English Breakfast
_______________________________________________
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.