Launching a defined app
Posted: Fri May 28, 2010 10:44 am
Hi,
I have a photo module which requires images to be loaded off a blob edited and loaded back to the db.
So to do this I need to launch a specified editor to open the image in. If I used the protocol handler it will only launch the image preview app not the editor,
so I have to specify a default editor app in both macs and windows. I have tried several times without success. So I was wondering if any of you have dealt with launching a specified and open a file in the launched app. So for example launch paint and open c:\photo.jpg without any user intervention.
I have tried to do application.executeProgram('C:\\Windows\\System32\\mspaint.exe',out_file.getAbsolutePath()) without success
Thanks in advance,
I have a photo module which requires images to be loaded off a blob edited and loaded back to the db.
So to do this I need to launch a specified editor to open the image in. If I used the protocol handler it will only launch the image preview app not the editor,
so I have to specify a default editor app in both macs and windows. I have tried several times without success. So I was wondering if any of you have dealt with launching a specified and open a file in the launched app. So for example launch paint and open c:\photo.jpg without any user intervention.
I have tried to do application.executeProgram('C:\\Windows\\System32\\mspaint.exe',out_file.getAbsolutePath()) without success
Thanks in advance,