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

if item <> nil then
        //show this document
else
        App.NewDocument //and put code to handle createing the default  
docuemtn inside the App.NewDocuemnt event handler
end

Cheers,
Tom

On 16/03/2007, at 1:13 AM, Tobias Meyer-Janson 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 Open event has finished. So
> if my app opens a default document in the Open event, it does it
> under any condition.
>
> Any idea?
>
> thx.
>
>
> TMJ
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to