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?

1 Answer 1

-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.

2
  • 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
    Jun 3, 2015 at 15:08
  • The save command was the answer! Thank you for your help, and apologies for not responding sooner.
    – JMCA
    Jun 6, 2015 at 23:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .