Opening a file with default app
Mike Matthews
omnis at lineal.co.uk
Sun Feb 14 14:59:46 EST 2016
Hello Alan,
for Windows users we use this:
; Register DLL (parameters) (command not visible by Mac users)
Register DLL ('Shell32.dll','ShellExecuteW','JJCCCCJ') Returns ErrorCode
; Call DLL (parameters) (command not visible by Mac users)
Call DLL ('Shell32.dll','ShellExecuteW',0,'#NULL#',pFilePath,'','#NULL#',1)
Calculate lvFlagOK as kTrue
Quit method lvFlagOK
For Mac OSX users, we use this:
If sys(6)='M'|sys(6)='X'
Send Finder event {Open Files (pDocumentPath)}
End If
But you could use an AppleScript.
The Windows version had some issues with 64bit Windows, but is now fixed in current version, but must be very latest or even v8.
Mike
Mike Matthews,
Managing Director, SQLWorks Software Ltd
Tel: +44 (0)1271 850550
Email: mike.matthews at sqlworks.co.uk
Web: www.sqlworks.co.uk
SQLWorks replaces Sage, ACT!, Opera, Access, SAP
On 14 Feb 2016, at 15:58, Alan Schmidt <alan at goconnected.com> wrote:
> I know this has been asked before but I'm not having much luck finding the answer in the archives.
>
> How can Studio (6.1 32 bit) open a file, such as a text file, forcing Windows to open it with the app associated with the file extension?
>
> Also, is this still the current list archive: http://www.omnis-dev.com:8090/searchform.do
>
> Thanks for the help.
>
> -Alan
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
More information about the omnisdev-en
mailing list