I can import filepaths with filename, icons ect., but is it also possible to launch the file (in it’s own application), too?
Yes! see: HOW TO: Run an AppleScript (and shell script) - Classic Servoy - Servoy Community
Plus there are a couple of other threads as well.
Thanks Bob! I did a search on ‘launch file’ and ‘open file’, but those didn’t quit find the information I needed…
Greetings, Karel
See HOW TO: Run an AppleScript (and shell script) - Classic Servoy - Servoy Community
if(utils.stringMiddle(application.getOSName(),1,7) == "Windows")
{
application.executeProgram('rundll32', 'url.dll,FileProtocolHandler','C:/out.pdf')
}
Bob
Yes, that would be a great solution for Windows! But we’re working with Mac’s… do you have something similair? It’s really important that the user is able to open ANY file…
Thank you anyway! Karel
Check:
application.executeProgram('osascript','-e','tell application "Finder" to say "David"');
You use applescript on the Mac to “tell” the Finder to open the document.