Re: AppleWorks fields on a layout
Re: AppleWorks fields on a layout
- Subject: Re: AppleWorks fields on a layout
- From: Yvan KOENIG <email@hidden>
- Date: Sat, 7 Oct 2006 14:13:51 +0200
Le 7 oct. 2006 à 13:31, T&B a écrit :
Hi all,
Following up:
I'm trying to get the location of each field in a layout in an
AppleWorks database. I can get as far as locating where all the
fields are on the layout, but just not which one is which.
I can't find a way to get the name of the database field that the
graphic object field ... represents.
As far as I know there is no way thru official tools.
If you wish I may ask to a friend which has deep knowledge about
some structures used by the pair AppleWorks + AppleScript.
Thank you Yvan for the info that you forwarded on. It basically
involves getting AppleWorks to copy the field object on the layout,
and reading the PICT data in the clipboard.
I had previously looked at whether copying a field object put
anything useful on the clipboard, by attempting to paste it into an
AppleWorks drawing document. That pasted nothing, so I had
mistakenly dismissed that avenue. It turns out that pasting into
another program, such as Mail or TextEdit, does actually paste in a
PICT of the field, complete with font and border.
For my trials, I simply activated Layout > Layout
select menu item 3 of menu 5
then selected one by one the existing layouts and grabbed the infos
from each of them.
set {i, premier} to {16,16}
repeat
try
get name of menu item i of menu 5
set i to i+1
on error
set dernier to i-1
exit repeat
end try
end repeat
(* here, {premier,dernier} are {index of the menu item first layout,
index of the menu item last layout}
Yvan KOENIG _______________________________________________
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