File browser : run external program


Compose Ver. 2017.3
If there are picture file, excel file or pdf file in the directory, we can see those file in the Compose 'File Browser'.
In the Compose 'File browser', how can I open that files through external programs directly (image viewer, excel program, pdf viewer?


Hi Seoksan,
you want to open the file (using its default application) from OML? then you can use 'system' command to open the file.
example: if you want to open a png file in photo viewer app (which is default application for opening png in my machine), you can do as below
system('demo.png')
this will open the demo.png in Microsoft photo viewer.
same with excel files,pdf as well.
Thanks,
Manoj kandukuri


Hi Seoksan,
you want to open the file (using its default application) from OML? then you can use 'system' command to open the file.
example: if you want to open a png file in photo viewer app (which is default application for opening png in my machine), you can do as below
system('demo.png')
this will open the demo.png in Microsoft photo viewer.
same with excel files,pdf as well.
Thanks,
Manoj kandukuri
Hi Seoksan,
I believe it's not possible to run a file directly from file browser with its associated application. You just can open the file as text file (even though it's a binary file).
In order to get a fast view of an image you can use imshow('filename').
Regards,
Ronald