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

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to