Re: Set BOUNDS to FileMaker Pro
Re: Set BOUNDS to FileMaker Pro
- Subject: Re: Set BOUNDS to FileMaker Pro
- From: webguide <email@hidden>
- Date: Sun, 28 Apr 2002 15:52:13 +1000
G'day Don,
>
I am trying to set it up so I can MANUALLY size and position ANY FMP file
>
window and use this file to record it's coordinates and size for plug-in
>
use. I've been messing with some of the Applescript commands and can't seem
>
to nail it.
>
>
Can anyone assist me :-)
This is probably a bit verbose but it also explains what's happening:
tell application "FileMaker Pro"
set thebounds to bounds of window 1
copy (item 1 of thebounds) to pos1
copy (item 2 of thebounds) to pos2
copy (item 3 of thebounds) to pos3
copy (item 4 of thebounds) to pos4
set cell "pos1" of current record to pos1
set cell "pos2" of current record to pos2
set cell "pos3" of current record to pos3
set cell "pos4" of current record to pos4
end tell
Needless to say you need to determine whether a new record is required but
this should get you on the way.
Cheers
Kim
BTW, this was done in OSX/FMP but should be fine anywhere.
_______________________________________________
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.