Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Martin =?UTF-8?Q?=CE=A4rautmann?= Newsgroups: comp.databases.filemaker Subject: Re: osx vs win Date: Wed, 25 Jan 2012 20:55:56 +0000 (UTC) Organization: slrn user Lines: 27 Message-ID: References: <65556$4f204f0d$535375e6$555@cache1.tilbu1.nb.home.nl> Reply-To: traut@gmx.de X-Trace: news.albasani.net tVI3f8YBol3IqFuAPBDcZ5D/W/86sb+ANDsOQHeA80D8tptda4VXrGAev/mc4tjMG2Xln1ajkDC1Chc459i1hWu8skvlxoriRrkk56JvxyUAwY0Mj3NeDQar5MvlKjtk NNTP-Posting-Date: Wed, 25 Jan 2012 20:55:56 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="f8HYwc59x9TfUp8uZnK7wIyjZd4BiPhYmfG6EfRQR1lCyc3ZYlmtDda4FBfnBqExSey+DJngYMmuAxEXa+NB11xJX8ygXbb0/I3DxP1jZz4TJiGfRPcnNny7/iMkrOPc"; mail-complaints-to="abuse@albasani.net" User-Agent: slrn/pre1.0.0-18 (Darwin) X-No-Archive: Yes Cancel-Lock: sha1:4BHyVC+BV8QRJAfrBOtkQNsEca0= Xref: x330-a1.tempe.blueboxinc.net comp.databases.filemaker:576 On Wed, 25 Jan 2012 19:50:47 +0100, wrote: > I have a calc that produces a link for a webviewer to display jpg's. While > it works for Win it fails for OSX. Can anyone shed light on this? > > the calc is cWebview [ calc, textrestult, "data:text/html, "/photo/" & file name & "\" >" ] > which returns the following: data:text/html, You have backslashes in your calc that do become slashes in the result? Path delimiters in OSX usually are colons instead of slashes. You do have an absolute path here, starting from root "/photo". Is this a http path? Then it should work on any platform. A real file path on OSX could be in root as well (while on Win it might require a drive letter such as C:), but usually the OSX paths would be somewhere around /Users/name/photo/ > The calc is put in the Web Address field of the WebObject which shows the > file for Win but nothing for mac. > the photo folder is always in the same directory as the filemaker file. Then don't use the root directory - a local path would be either without the "/" prefix or would use "./". - Martin