if(utils.stringMiddle(application.getOSName(),1,7) == "Windows")
{
application.executeProgram('rundll32', 'url.dll,FileProtocolHandler','C:/out.pdf')
}
admin wrote:on mac you can use the open command to achieve the same
if(utils.stringMiddle(application.getOSName(),1,7) == "Windows")
{
application.executeProgram('rundll32', 'url.dll,FileProtocolHandler','C:/out.pdf')
}
david wrote:In OS X terminal, this command opens a pdf in Preview:
open -a preview /Users/admin/Desktop/93260403.pdf
The parameters for executeProgram would look like this then:
application.executeProgram('open','-a','preview','/Users/admin/Desktop/93260403.pdf');
Combine this with the applescript from the first post, you could return a list of all the jpg files in a directory and then open them in preview. All without leaving Servoy.
- david
Users browsing this forum: No registered users and 4 guests