USing the launch command

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
phaworth
Posts: 592
Joined: Thu Jun 11, 2009 9:51 pm

USing the launch command

Post by phaworth » Thu Nov 05, 2009 7:37 pm

The dictionary says the launch command opens a docuemnt using the default application for the type of file. My application creates a file with a .html extension and then launches it, but it is opened in MsWord, not Firefox, which is the default browser on my system.

Is there something lse I need to do to have the file opened with the correct application? This is running under OSX 10.5

Thanks,
Pete

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Thu Nov 05, 2009 7:56 pm

Hi Pete,

Before you create the file, do this:

set the filetype to "MOSSHTML"

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

phaworth
Posts: 592
Joined: Thu Jun 11, 2009 9:51 pm

Post by phaworth » Thu Nov 05, 2009 8:11 pm

Thanks Mark. I'll be creating other files for different programs, so is there a list of these filetypes somewhere?
Pete

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Thu Nov 05, 2009 8:33 pm

Pete,

There used to be such a list, but Apple no longer bothers and the alternative lists all went off-line AFAIK.

If you want a file to open with a particular application, you might look in the plist file of that application. You can also use the detailed files function of Revolution to see the current file and creator types of files.

If a file has an extension of which you know that it is associated with your preferred default application, you can also set the filetype to "????????" or e.g. "????TEXT" etc.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply