Re: scripting Appleworks 6
Re: scripting Appleworks 6
- Subject: Re: scripting Appleworks 6
- From: Nigel Smith <email@hidden>
- Date: Tue, 10 Feb 2004 17:32:07 +0000
On 9/2/04 13:33, "Shelly Mendlinger" <email@hidden> wrote:
>
first, thanks to all who responded to my previous post about excel.
>
>
Again, I need help, this time with appleworks 6. How do I create a new record?
>
*make new record at end of database layer* returns an error
You really need to provide a little more of the script -- there's no way of
telling the context of that line without it.
Anyway, this works for me, for an open database called "untitled":
tell application "AppleWorks 6"
set theRec to make new record at end of document "untitled"
end tell
You can also phrase this as:
tell application "AppleWorks 6"
tell document "untitled"
set theRec to make new record at end
end tell
end tell
You can even put data in the record at the same time:
tell application "AppleWorks 6"
tell document "untitled"
set theRec to make new record at end with data {"hello world"}
end tell
end tell
>
and set the value of a field?
>
*set value of field 1 to "haha" and set value of field "name" to "haha" *
>
return errors
Again, set value of field 1 of *what*? You need to supply a record and a
document:
tell application "AppleWorks 6"
tell document "untitled"
set the value of field 1 of record 1 to "bah!"
end tell
end tell
HTH,
Nigel
_______________________________________________
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.