David

This works for me launching(all sorts of) documents..(OSX there is a another 
bit bit i have for windows)

$_t_DocumentPath:=<—full path to document
If (Test path name($_T_DocumentPath)=Is a document)
$_t_PosixPath:=Convert path system to POSIX($_t_DocumentPath)

$_t_FilePath:=$_t_char+$_t_PosixPath+$_t_Char
$_t_applicationName:=UTIL_GetDocApps ($_t_DocumentType;True)  //do some stuff 
to check what app they want(not entirely necessary  This will only ask once!-so 
could be launching an HTML doc with preferred browser for example

If ($_t_applicationName#"")
  //now we must checkt the applicaiton exist
$_t_ApplicationPath:=System folder(Applications or program files)

If (Not(Test path name($_t_ApplicationPath+$_t_applicationName)=Is a document))
  //i am not faffing about looking for apps installed somewhere else..
LAUNCH EXTERNAL PROCESS("open "+Char(34)+$_t_PosixPath+Char(34))

Else 
LAUNCH EXTERNAL PROCESS("open -a "+Char(34)+$_t_applicationName+Char(34)+" 
"+Char(34)+$_t_FilePath+Char(34))

End if 

Else 
LAUNCH EXTERNAL PROCESS("open "+Char(34)+$_t_PosixPath+Char(34))

End if 




> On 13 Mar 2017, at 07:08, David Ringsmuth via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Bernd,
> 
> Yes, html was what I first tried.
> 
> David Ringsmuth
> 
> From: Bernd Fröhlich via 4D_Tech
> Sent: Saturday, March 11, 2017 4:57 AM
> To: 4d_tech@lists.4d.com
> Cc: Bernd Fröhlich
> Subject: Re: osx open url vs osascript FYI
> 
> David Ringsmuth:
> 
>> I tried many different things to launch a .htm on OSX using OPEN URL, and it 
>> would not automatically open the document.
> 
> 
> Have you tried using ".html" instead of ".htm"?
> What happens if you doubleclick your .htm-document in the finder?
> 
> Greetings from Germany,
> Bernd Fröhlich
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **********************************************************************
> 
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **********************************************************************

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to