Can't create a data source?

Ok, I’m no newbie, but all of a sudden I’m having problems creating data sources. Script Editor, when fed the following line, tells me that “The variable source is not defined”.

set theDataSource to make new data source at end of data sources with properties {name:"test"}

I know it’s going to wind up being something silly, but it is very strange…

Data is a raw object in AppleScript without the appended “source”. Something like this, I think (I haven’t used data except for unicode):


set theDataSource to make new data at end of dataSources with properties {name:"test"}

neither lines worked in Script Editor.
This seemed to work:


tell application "Database Events"
	set theDataSource to make new database with properties {name:"test7"}
	databases
end tell

however I was unable to make a new record.

Maybe I’m missing a point here. data source / database