Re: OSX Opening an App with a document

2016-10-06 Thread Trevor DeVore
On Thu, Oct 6, 2016 at 12:44 PM, J. Landman Gay wrote: > You can create your own system globals by prepending "$" to the variable > name. If you do that in the appleEvent handler then later whenever you need > it, you can access the global. Unless things have changed since I last used > it, apple

Re: BUG: OSX Opening an App with a document

2016-10-06 Thread Terry Judd
Seems like it could fire earlier but I guess it ensures consistency when double-clicking/dropping a document irrespective of whether the app is open or not. Although, if you’re using custom urls on iOS – which are sort of analogous – then mobileGetLaunchURL() is available at preopenstack. Terry

BUG: OSX Opening an App with a document

2016-10-06 Thread Paul Dupuis
In both LC 6.7.11 and LC 8.1.0 the appleEvent message for when the standalone is launched with a document is NOT send under AFTER openCard EVEN if prior message handles include a WAIT ... WITH MESSAGES. I think this is a BUG? Does anyone else agree? For example, here is the startup messages of an

Re: OSX Opening an App with a document

2016-10-06 Thread J. Landman Gay
You can create your own system globals by prepending "$" to the variable name. If you do that in the appleEvent handler then later whenever you need it, you can access the global. Unless things have changed since I last used it, appleEvent is sent immediately during startup . Or you could use

Re: OSX Opening an App with a document

2016-10-06 Thread Paul Dupuis
Does anyone have any good code for this? On 10/5/2016 5:56 PM, Paul Dupuis wrote: > Okay list gurus: > > What is the best practice method for determine whether a Standalone app > under OSX was opened with a document (by drag and drop or double-click)? > > I have an appleevent handler that get any

OSX Opening an App with a document

2016-10-05 Thread Paul Dupuis
Okay list gurus: What is the best practice method for determine whether a Standalone app under OSX was opened with a document (by drag and drop or double-click)? I have an appleevent handler that get any doc dropped on the app while it is running. I was also checking this after startup (and by st