Re: How to put an incremental counter into Appleworks?
Re: How to put an incremental counter into Appleworks?
- Subject: Re: How to put an incremental counter into Appleworks?
- From: Jeremy Sellors <email@hidden>
- Date: Thu, 7 Oct 2004 06:26:44 -0700
Something like this? Save in the Database folder/ AppleWorks scripts folder / AppleWorks Essentials folder / AppleWorks folder it can be called from the AppleWorks script menu
property IndexCount : 1250
tell application "AppleWorks 6"
activate
try
set FieldName to name of selection
on error
display dialog "Select field to enter serial number."
return
end try
set currentRecord to object specifier of current record of database layer of document 1
select currentRecord
set value of field FieldName of current record of document 1 to IndexCount
set IndexCount to IndexCount + 1
end tell
__Jeremy
On Oct 7, 2004, at 1:29 AM, peter boardman wrote:
Riviera Reporter <email@hidden> said on 2004-10-06, 19:59 (+0200
GMT):
In the "old days" (before OS-X) I used to number chits consecutively
using KeyQuencer (A QuicKeys-like app). The same thing must be
possible in Applescript but I haven't quite figured out how.
[...}
5/ a really smooth embellishment would be if the last number used
could be saved between startups so that the dialog box showed that
number the next time I start a session. Asking too much maybe?
There are loads of ways of running scripts, so that shouldn't be a problem.
AppleScript has a property feature that may offer what you want. Values of
properties are stored in a compiled script. These will be remembered until you next
edit and compile the script, so they should last even across restarts.
The hardest job will be to provide information to a database field in AppleWorks. My
attempts at scripting the database in AppleWorks haven't been very successful.
Pete
_______________________________________________
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
_______________________________________________
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