OSX drag & drop rev application?
Alex Shaw
alex at harryscollar.com
Thu Jul 9 09:53:55 EDT 2009
Thanks Jacqueline!
That and setting values for the standalone OSX settings: Document Type &
Document Extension, solved things.
kind regards
alex
J. Landman Gay wrote:
> Alex Shaw wrote:
>> Hi
>>
>> No problems getting the global variable $1 working on a runrev windows
>> standalone to determine what data file was dropped on the application
>> or double-clicked to launch the standalone but how do you do this on OSX?
>>
>> Discovered if the data file is really a renamed stack set to be opened
>> by the osx compiled rev standalone then that works ok (stack just runs
>> and no need for $1) but what if you do not want to use a rev stack
>> file for your data file container or want to activate the rev app by
>> dropping a data file onto the standalone application icon sitting on
>> your dock?
>
> Use an AppleEvent handler for Macs:
>
> on appleEvent pClass, pID
> if pClass is "aevt" and pID is "odoc" then
> -- the file path is in the appleEvent data
> request appleEvent data
> put it into tFilePath
> -- open the file here
> else
> pass appleEvent
> end if
> end appleEvent
>
More information about the use-livecode
mailing list