Hi Guys
I hope that everyone is well.
Probably quite a simple one bu I cant find anything on it.
If I have a file on e.g. my desktop and the path to the file is in e.g. t_path how do I open that file...
so for example if t_path was a Microsoft Word document how do I get the file to open in Microsoft Word
or if the file was an iCal (.ics) file how do I open it so it displays in Calendar.
.... in layman's terms I want to achieve the same as when I double click on the file on my desktop.
Many Thanks
Opening a File to view
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Opening a File to view
If I have understood correctly, I think you will want to investigate
Code: Select all
launch (t_path)
--or
launch document (t_path)
-
- Livecode Opensource Backer
- Posts: 9389
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Opening a File to view
Let me guess . . .
. . . you are trying to write a file browser in LiveCode ?
. . . you are trying to write a file browser in LiveCode ?
-
- VIP Livecode Opensource Backer
- Posts: 9670
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Opening a File to view
Hi.
Aren't we talking about the "open file" command?
Craig
Aren't we talking about the "open file" command?
Craig
Re: Opening a File to view
Hi Guys
Thank you very much, I had tried Open File, and Launch, hence why I was a a bit stuck... I've just tried your suggestions of Launch Document and that works perfectly thank you.
Its for a booking system, once the date is booked into the system it will then give the option to add the entry to the users Calendar on their computer.
Many Thanks
Hadleigh
Thank you very much, I had tried Open File, and Launch, hence why I was a a bit stuck... I've just tried your suggestions of Launch Document and that works perfectly thank you.
Its for a booking system, once the date is booked into the system it will then give the option to add the entry to the users Calendar on their computer.
Many Thanks
Hadleigh