Hi Pete,

Just a quick answer. You can set file associations for OSX in the OSX tab of the standalone application settings window. Installer Maker manages the file associations on Windows. I'm not sure how to do this in Linux, but I think double-clicking an unassociated file in Ubuntu would show a window with an option to choose an app. I think you can also set file associations in a .desktop file, but I'm not sure how this works.

On all desktop platforms, you can use $1 to determine if a file was double-clicked to trigger the launch of the application. $1 contains the file path.

You need to check out the relaunch message in the docs. Create a relaunch handler that doesn't return anything (or returns empty). You can also use the relaunch message to open a document on Windows.

On Mac OS X, you'd use apple events if an app is running already.

Again, I'm not sure how this works on Linux. It should be possible for a standalone to determine if a process is running already and somehow tell that process to open a file.

(As soon as I figure this out for Linux, I'll add it to Installer Maker).


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com

Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi

Fill out this survey please
http://livecodebeginner.economy-x-talk.com/survey/

On 8/1/2013 01:47, Peter Haworth wrote:
Is it possible to associate a file extension with a standalone application
so the standalone runs when a user double clicks on a file with the
extension?  Multiple file extensions?  This would be for all three desktop
platforms.
Pete
lcSQL Software <http://www.lcsql.com>

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to