Open application when file double clicked
pete at lcsql.com
Tue Feb 24 20:14:11 CET 2015
I'm looking for odoc right now but I just inserted some answer statements
right at the top of my appleevent handler and it's not being triggered.
Unless answer statements don't work within an applevent handler for some
On Tue Feb 24 2015 at 11:05:46 AM Richard Gaskin <ambassador at fourthworld.com>
> Which event, odoc or oapp?
> If only the former, what happens when you include the latter?
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> Ambassador at FourthWorld.com http://www.FourthWorld.com
> Peter Haworth wrote:
> > Thanks Richard. The code I'm using came from a note in the dictionary
> > a note that it came from Trevor Devore originally but it's dated 2009 so
> > maybe Apple events have changed since then. I tried the double click
> > the application not running and with it running but did not seem to hot
> > on appleEvent handler
> > On Tue Feb 24 2015 at 10:56:47 AM Richard Gaskin <ambassador at
> > wrote:
> >> Peter Haworth wrote:
> >> > There's a user note in the dictionary that says $1 does not contain
> >> > the path to the double clicked file on OSX. Is that true?
> >> I believe so. OS X may be a certified Unix, but the Finder is off in a
> >> world of its own. :)
> >> On Linux and Windows that still works, and on both you can quer $# to
> >> obtain the number of params to see if more than one file was opened with
> >> the app launch.
> >> On Mac Apple's method has been Apple events since the early '90s.
> >> Anyone else here able to reproduce the issue Peter's seeing with
> >> Could this issue be that you're responding to the odoc event rather than
> >> oapp?
> >> It's been so long since I wrote any code for that I can't recall, but
> >> with oapp sent on launch, perhaps odoc only sent when a doc is
> >> double-clicked any time after launch.
> >> --
> >> Richard Gaskin
> >> Fourth World Systems
> >> Software Design and Development for the Desktop, Mobile, and the Web
> >> ____________________________________________________________________
> >> Ambassador at FourthWorld.com
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode