Re: applescript-users digest, Vol 3 #869 - 14 msgs
Re: applescript-users digest, Vol 3 #869 - 14 msgs
- Subject: Re: applescript-users digest, Vol 3 #869 - 14 msgs
- From: Roel Wijmans <email@hidden>
- Date: Thu, 19 Sep 2002 13:40:09 +1000
I came across the same problem, and ugly way that i overcame that was
with this
tell application "FileMaker Pro"
set x to {}
--repeat with the max number of databases filemaker can have open.
repeat with theDatabase from 1 to 50
if exists database theDatabase then
set end of x to database theDatabase
end if
end repeat
end tell
set y to count of x
not ideal, but it seems to work for me.
Roel
On Thursday, September 19, 2002, at 11:12 AM,
email@hidden wrote:
>
Message: 2
>
Date: Wed, 18 Sep 2002 17:24:48 +0100
>
Subject: Re: FMP 6.0v3, OS X 10.2 and AppleScript -> Broken
>
Cc: AS List <email@hidden>
>
To: Mr Tea <email@hidden>
>
From: Simon Forster <email@hidden>
>
>
On Wednesday, September 18, 2002, at 04:22 PM, Mr Tea wrote:
>
>
>> tell application "FileMaker Pro" to return count of windows
>
>>
>
>> throws an error: "FileMaker Pro got an error: Object not found."
>
>
> Have you tried:
>
>
>
> tell application "FileMaker Pro" to return count of (get windows)
>
>
Mr Tea (or can I call you Nick?)
>
>
Unfortunately, this fails
>
>
> ...or writing the list of windows to a variable first?
>
>
>
> tell application "FileMaker Pro"
>
> set fenestrations to every window
>
> count of fenestrations
>
> end tell
>
>
As does this.
>
>
> This coercive extra step seems to be necessary all over the shop in
>
> more
>
> recent versions of AS.
>
>
I had noticed this but it seemed to be a general OS X problem. The
>
error I'm reporting here is introduced with OS 10.2. The latest and
>
greatest 10.1.x works fine. I have 2 quite hefty scripts which whirr
>
and click away every morning at 3:00 am on a 10.1.5(?) box. I had
>
planned to copy the scripts to another machine so that I could upgrade
>
their current residence and then have a go at failing to get Sendmail
>
working and failing to get Mailman installed on the newly cleared
>
machine. Happily I checked the scripts under OS X 10.2 before I got too
>
far advanced with this plan. Now I'm back at the drawing board!
>
>
Simon Forster
>
_________________________________________________
>
BabelFix Ltd, Office One, 16 Canham Road, London, W3 7SR, UK
>
<tel int="+44 20 8746 0555" uk="020 8746 0555">
>
<tel int="+44 70 9230 5244" uk="070 9230 5244">
>
<fax int="+44 70 9230 5247" uk="070 9230 5247">
>
<mailto:email@hidden>
>
________________________________
_______________________________________________
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.