FileMaker "current Record"
FileMaker "current Record"
- Subject: FileMaker "current Record"
- From: David Crowe <email@hidden>
- Date: Thu, 23 Dec 2004 21:48:28 -0700
Title: FileMaker "current
Record"
Well, I finally solved my problem. People may be interested in
this, because most of the leads that I got didn't work,
including:
- Enclosing the "current record" reference in a <tell
layout...>
- Using "tell table x"
- Using the full pathname: tell "HD:Applications:...:FileMaker
Developer.app"
None of them would accept "current record".
What did work was replacing "database" by window. This
snippet updates the field 'file' in the current record:
tell application "FileMaker Developer"
tell
window "AIDS
References"
set
cell
"file"
of current
record
to
"filename.pdf"
end
tell
end
tell
This makes sense because FileMaker now supports multiple windows,
each with its own context. So a database may have multiple contexts,
and the same layout may appear on multiple windows.
Anyway, hopefully this will help people also trying to convert
scripts from FileMaker 6 to 7.
- David Crowe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden