Re: How to determine if app launch was initiated by dropping a document

2007-03-19 Thread Arnaud Nicolet
Le 15 mars 07 à 21:29 Soir, Tom Benson a écrit: > The App.OpenDocument event will fire if the application is launched > by either of the following methods > > 1) a user double clicks a document in the Finder/Explorer, and you > app is the designated editor > 2) a user drags and drops a file onto y

Re: How to determine if app launch was initiated by dropping a document

2007-03-15 Thread Tom Benson
The App.OpenDocument event will fire if the application is launched by either of the following methods 1) a user double clicks a document in the Finder/Explorer, and you app is the designated editor 2) a user drags and drops a file onto you apps icon So, I'd put this code in the App.OpenDocum

Re: How to determine if app launch was initiated by dropping a document

2007-03-15 Thread Arnaud Nicolet
Le 15 mars 07 à 15:31 Soir, Harrie Westphal a écrit: > The NewDocument event is called if you just simply launch your > application so put your Open code in that event. The open event may still be used when you need to do something in both cases (wether you have a document open or not). ___

Re: How to determine if app launch was initiated by dropping a document

2007-03-15 Thread Tobias Meyer-Janson
"Dennis Birch" <[EMAIL PROTECTED]> wrote: ><[EMAIL PROTECTED]> wrote: >> is there a way to determine if an app launch was initiated by >> dropping a file? >If it's helpful, the NewDocument event fires when your application is >launched without a document (file) Oh yes, NewDocument vs. OpenDocu

Re: How to determine if app launch was initiated by dropping a document

2007-03-15 Thread Harrie Westphal
On Mar 15, 2007, at 9:13 AM, Tobias Meyer-Janson wrote: > is there a way to determine if an app launch was initiated by > dropping a file? I want my app to open a default document file but > not if it was launched by dropping any other file. > The OpenDocument event fires after the Open event

Re: How to determine if app launch was initiated by dropping a document

2007-03-15 Thread Dennis Birch
On 3/15/07, Tobias Meyer-Janson <[EMAIL PROTECTED]> wrote: > Hi, > > > is there a way to determine if an app launch was initiated by > dropping a file? I want my app to open a default document file but > not if it was launched by dropping any other file. > The OpenDocument event fires after the

How to determine if app launch was initiated by dropping a document

2007-03-15 Thread Tobias Meyer-Janson
Hi, is there a way to determine if an app launch was initiated by dropping a file? I want my app to open a default document file but not if it was launched by dropping any other file. The OpenDocument event fires after the Open event has finished. So if my app opens a default document in t