Re: Database Events
Re: Database Events
- Subject: Re: Database Events
- From: Bill Cheeseman <email@hidden>
- Date: Tue, 21 Feb 2006 14:05:20 -0500
- Thread-topic: Database Events
on 2006-02-21 12:48 PM, Simon Forster at email@hidden wrote:
> Has anyone worked with database events? Any examples or URLs for
> further info? I've done a quick Google and looked on Apple's site but
> haven't found anything. Just wondering before I have a quick play.
It's very simple. Everything you need to know about it is in the monthly
AppleScript column in the latest issue of MacTech Magazine. I figured it all
out from the dictionary by playing with it for half an hour before that
issue of MacTech came out, so you shouldn't have any problems even if you
don't have access to MacTech.
The basic idea is that you make a new database object, then you populate it
by making new records and fields. You don't "define" any fields -- you just
keep creating new ones with the make command, using the same field names and
the new values that go with them for this particular record. You search the
database by using whose clauses. Databases are automatically stored in a
standard location.
The only tricky part is that the Database Events background application
quits automatically after a while. The default is 5 minutes, I think, but
you can set it to anything you like. Setting it to 0 makes it run forever.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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