How do I create a new database?

1

Since upgrading to Yosemite 10.10.1, I can't create a new database

set theOutputFolder to choose folder with prompt "Please select an output folder:"
tell application "Database Events"
    make new database with properties {name:"Test", location:theOutputFolder}
end tell

It appears to result in database "Test" of application "Database Events", but it doesn't. It's not on my desktop, or at least I can't see it. Can anyone please help me?

JMCA

Posted 2015-01-27T06:20:45.897

Reputation: 13

Answers

-1

set theOutputFolder to choose folder with prompt "Please select an output folder:"
tell application "Database Events"
    make new database with properties {name:"Test", location:theOutputFolder}
    save database "Test"
end tell

Add the save command to save your new database. It will then be visible in Finder.

user454922

Posted 2015-01-27T06:20:45.897

Reputation: 26

You may want to edit this to make it clearer that the @JMCA needs to include save database "Test". If someone just skims the answer, they may not notice this addition. – lzam – 2015-06-03T15:08:04.570

The save command was the answer! Thank you for your help, and apologies for not responding sooner. – JMCA – 2015-06-06T23:02:46.337