Re: launch document problem

2016-01-28 Thread Kay C Lan
On Fri, Jan 29, 2016 at 1:06 AM, Peter Haworth wrote: > > The only issue I have now is avoiding hard coding the browser to use. Does > anyone know of a way to find the default browser setting in OSX (this > program will only be running on Macs). > > Poking around in User level /Library/Preferen

Re: launch document problem

2016-01-28 Thread Peter Haworth
Thanks Mark. I filed report (16776) and it's been classified as a bug with the workaround documented by Kay. The only issue I have now is avoiding hard coding the browser to use. Does anyone know of a way to find the default browser setting in OSX (this program will only be running on Macs). Pe

Re: launch document problem

2016-01-28 Thread [-hh]
This may be related to the fact we know from HTML5-standalones. (Newest) Goggle Chrome and Opera want a (local) web server for more than 'simple' html documents, Safari and Firefox launch everything from local files. Anyway, comparing to the behaviour when launching from alocal web server could

Re: launch document problem

2016-01-27 Thread Kay C Lan
On Thu, Jan 28, 2016 at 3:46 PM, Mark Waddingham wrote: > > > Given that Kay observed that 'launch document with' works, but 'launch > document' does not > Just to clarify, the Dictionary states the correct syntax as launch FILEPATH with APPLICATIONPATH or launch document FILEPATH 'document'

Re: launch document problem

2016-01-27 Thread Mark Waddingham
Hi Pete, On 2016-01-28 01:26, Peter Haworth wrote: Prowling around the web, I found that the url I'm seeing is a "file reference url", not sure whether this is an Apple thing or cross platform. Since it works in Safari and not in Chrome, I suspect it may be an Apple thing. I believe 'launch

Re: launch document problem

2016-01-27 Thread Kay C Lan
OSX 10.10.5 LC 7.1.1 launch "/Users/kclan/Documents/test.html" with "/Applications/Firefox.app" launch "/Users/kclan/Documents/test.html" with "/Applications/Safari.app" launch "/Users/kclan/Documents/test.html" with "/Applications/Google Chrome.app" All resulted in the file opening successfull

Re: launch document problem

2016-01-27 Thread Peter Haworth
Prowling around the web, I found that the url I'm seeing is a "file reference url", not sure whether this is an Apple thing or cross platform. Since it works in Safari and not in Chrome, I suspect it may be an Apple thing. However the engine processes a launch document command is converting the no

Re: launch document problem

2016-01-27 Thread Peter Haworth
Still get a "can't open file" error or "no association" error depending on whether I use launch document or launch url. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Jan

Re: launch document problem

2016-01-27 Thread Phil Davis
Try replacing spaces with "%20" in your url and see if that works. Phil Davis On 1/27/16 3:31 PM, Peter Haworth wrote: If I urlencode it, the launch command fails with "can't open file". I also tried sticking "file:" at the front of the filepath and used launch url but that resulted in a "no

Re: launch document problem

2016-01-27 Thread Peter Haworth
If I urlencode it, the launch command fails with "can't open file". I also tried sticking "file:" at the front of the filepath and used launch url but that resulted in a "no association" error. I'm also finding that if I simply double click on the file in the Finder, Chrome opens it just fine wit

Re: launch document problem

2016-01-27 Thread Mark Wieder
On 01/27/2016 12:02 PM, Peter Haworth wrote: /Users/Pete/Documents/BandTrak/Report Data/Remittance.html Does anyone know why this transformation of the file reference is occurring? Also why it is recognized in Safari and not Chrome? urlencode it or (better) remove that embedded space. --