document based app - spawn "open file" dialog instead of empty window?

Hello,

I am building a document based AppleScript Studio application and I do not want the application to open a new document window on startup but rather an “open file” dialog, as this is going to be a read-only application. How can I achieve that?

Regards
ozzyrocks

Connect your application object (“File’s Owner”) to the ‘should open untitled’ handler. In the handler, just return false. Then use one of the launch-time handlers (such as ‘will finish launching’) to configure and open your open panel.