opening files

I want to do a feature request, where all ready have been spoken, but I could’nt find, if it is on the wishlist!
see also: http://forum.servoy.com/viewtopic.php?t=221&start=0

For us it is very important (we are converting from a Filemaker-app) that we can launch a file, without hardcoding the program application in the method.
In the upper-link there has been spoken over Mime-type
Is it possible?

After investigating last time we concluded it is not possible (the model Sun provides does not have implemtors and default functionallity is close to non).
The best we could currently think of is making it possible to access the MS office web service to interact to at least office…

HJK:
I want to do a feature request, where all ready have been spoken, but I could’nt find, if it is on the wishlist!
see also: http://forum.servoy.com/viewtopic.php?t=221&start=0

For us it is very important (we are converting from a Filemaker-app) that we can launch a file, without hardcoding the program application in the method.
In the upper-link there has been spoken over Mime-type
Is it possible?

Maybe this could be a workaround (I didn’t test it), but it only works on OSX (you have to do the same with a script language on Win):

if you can pass the file path into a text, maybe you could execute the text as an applescript with an “open” command attached to it.
For instance, if you use a shell script with open /Users/ric/Desktop/P516.pdf, the file opens with its default app.

Let me know if it works :wink:

I don’t know if this can be done in vbscript!
Anyone familiar with it?

Does anybody know how to run a file (like starting a word-document or a pdf file) in vbscript?

winthout pointing to the right program?

Far as I know you need to first start the application by name then give the full path to the file as an argument.

check [u]this[/u] out

Jan Blok:
check [u]this[/u] out

Most excellent, Jan. Thank you! This appears to work with everything.