Open application when file double clicked
Richard Gaskin
ambassador at fourthworld.com
Tue Feb 24 16:16:40 EST 2015
Wierdness abounds:
I made a standalone with this card script:
on startup
insert script of btn "fs" into front
end startup
This script in a button "fs":
on appleEvent
put the params &cr & the executionContexts &cr&cr after fld 1
pass appleEvent
end appleEvent
And that same script in the stack.
When I double-click the resulting app, I see:
appleEvent "aevt","oapp",""
button id 1007 of card id 1002 of stack "/Users/rg/Desktop/ae tester/ae
tester/ae tester.app/Contents/MacOS/ae tester",appleEvent,2
appleEvent "aevt","oapp",""
stack "/Users/rg/Desktop/ae tester/ae tester/ae
tester.app/Contents/MacOS/ae tester",appleEvent,2
When I launch the app by dropping a text file onto it (I'd set it up to
use TEXT/txt files) I get:
appleEvent "aevt","odoc",""
button id 1007 of card id 1002 of stack "/Users/rg/Desktop/ae tester/ae
tester/ae tester copy.app/Contents/MacOS/ae tester",appleEvent,2
appleEvent "aevt","odoc",""
stack "/Users/rg/Desktop/ae tester/ae tester/ae tester
copy.app/Contents/MacOS/ae tester",appleEvent,2
But I get no oapp when I launch the app with a document, and I get no
odoc when I launch the app without one.
I've searched the LC scripts and this issue is different from the older
one I'd experienced, since the other one was consistent and caused by a
rev script.
This one appears to be engine-level, in which only the first Apple event
is processed, and subsequent ones ignored.
Can anyone confirm this before I update my bug report?
--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web
____________________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list