Re: FileMaker Pro Hierarchy
Re: FileMaker Pro Hierarchy
- Subject: Re: FileMaker Pro Hierarchy
- From: Bruce Robertson <email@hidden>
- Date: Tue, 18 May 2010 09:52:46 -0700
Because you have to be there. You have to go to the layout.
tell application "FileMaker Pro Advanced"
tell database "NameOfDataBase.fp7"
go to layout "NameOfLayout"
show every record
end tell
end tell
Try this:
tell application "FileMaker Pro Advanced"
set visible of window 1 to false
go to layout "Zips"
set x1 to a reference to (every record of table "Zips" whose cell "City" = "Seattle")
set x2 to a reference to (every record of table "Zips" whose cell "City" = "Portland")
display dialog (count of x1) giving up after 2
-- window is still hidden
show x1
end tell
On May 18, 2010, at 8:49 AM, Steve Valenti wrote:
> Can someone explain why these first two scripts can’t address the show command but the third one can? Does one need to come back out of the hierarchy just to address the show every record? In this first script a record is an element of a layout, a layout is an element of a window and a window is an element of the application. Can’t see why this isn’t addressed correctly. Thanks…
>
>
> tell application "FileMaker Pro Advanced"
> tell window "NameOfWindow"
> tell layout "NameOfLayout"
> show every record --errors here
> end tell
> end tell
> end tell
>
> tell application "FileMaker Pro Advanced"
> tell database "NameOfDataBase.fp7"
> tell layout "NameOfLayout"
> show every record --errors here
> end tell
> end tell
> end tell
>
> tell application "FileMaker Pro Advanced"
> show every record of database "NameOfDataBase.fp7" --Works
> end tell
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden