Re: fields in appleworks
Re: fields in appleworks
- Subject: Re: fields in appleworks
- From: T&B <email@hidden>
- Date: Mon, 5 Aug 2002 02:01:52 +1000
with
make new field at end with properties {name:"Name", field kind:text
field}
i can make a new field in a AppleWorks database.
but i can not access that new field. its imposible to get its properties
with applescript
You can get the name and field kind properties of a defined field, such as:
tell application "AppleWorks 6"
tell database of front document
get field kind of field "Name"
end tell
end tell
or to enter values manual in the appleworks document.
set the value of a field, like this:
tell application "AppleWorks 6"
tell database of front document
set value of field "Name" in record 1 to "Tom"
end tell
end tell
also, it dont appear in the appleworks dialog, where i can define and
redefine the fields of a database document. it seems, it does not exist,
but its visible in the layout.
This used to work, but doesn't seem to now in AppleWorks 6.2.4 on Mac OS
10.1.5.
the new script defined field have always the same properties as the first
field in the database. no matter what properties i give.
This is supposed to work:
tell application "AppleWorks 6"
make new document at front with properties {document kind:database
document}
tell database of front document
make new field at end with properties {name:"Name", field kind:text
field}
make new field at end with properties {name:"Age", field
kind:number field}
end tell
end tell
But testing reveals the bugs that you mention. Sigh, more bugs in
AppleScript for AppleWorks.
Tom
T&B
http://www.tandb.com.au/appleworks/
_______________________________________________
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.