Open file with double click

Peter Haworth pete at lcsql.com
Thu Aug 1 14:30:02 EDT 2013


Thanks for all the info Mark, I'll check it all out.

Pete
lcSQL Software <http://www.lcsql.com>


On Wed, Jul 31, 2013 at 5:00 PM, Mark Schonewille <
m.schonewille at economy-x-talk.com> wrote:

> 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<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/<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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode>
>



More information about the use-livecode mailing list