From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74494 Path: news.gmane.org!not-for-mail From: Ian Lawrence Newsgroups: gmane.comp.tex.context Subject: Re: A bit more help with referencing local filenames Date: Wed, 15 Feb 2012 19:46:24 +0000 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1329335213 32042 80.91.229.3 (15 Feb 2012 19:46:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Feb 2012 19:46:53 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 15 20:46:47 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RxkoQ-0002T0-Mm for gctc-ntg-context-518@m.gmane.org; Wed, 15 Feb 2012 20:46:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CEBFDCB229; Wed, 15 Feb 2012 20:46:45 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MgaZsYDzqHCP; Wed, 15 Feb 2012 20:46:40 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 57A72CB21C; Wed, 15 Feb 2012 20:46:40 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 84944CB21C for ; Wed, 15 Feb 2012 20:46:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 1bW3InzARIRV for ; Wed, 15 Feb 2012 20:46:25 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id DC37BCB213 for ; Wed, 15 Feb 2012 20:46:25 +0100 (CET) Original-Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q1FJkO2j001649 for ; Wed, 15 Feb 2012 20:46:25 +0100 Original-Received: by eekc13 with SMTP id c13so598810eek.14 for ; Wed, 15 Feb 2012 11:46:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=P1AoOMc+nbPbsUKj/FWFmFFlUmyuGHUKSAsf9jaHtQg=; b=ByYV4mPpaRs+kiMTOU9KiwNF+oyyKlcB1l2F5+sni5QB6zprPdBsl0tqrN9CnL3jTY sGJYr2xroF23TudE95OvS0XsnHzj675lsn6KAOXppBNw2gq7NFudR39By30sJcA9F0FM E8scdZ4y7Jvt98jOj0R6CsqV07KDpls5pHnWE= Original-Received: by 10.213.31.141 with SMTP id y13mr426943ebc.49.1329335184846; Wed, 15 Feb 2012 11:46:24 -0800 (PST) Original-Received: by 10.213.101.18 with HTTP; Wed, 15 Feb 2012 11:46:24 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bGyjKpsC - 7b3a5a4c270f - 20120215 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:74494 Archived-At: OK, a bit early! This one > swfURLPath=3D{\\PN01_media/}, > supportURLPath=3D{\\PN01_support/}, works with Acrobat, but not with the Preview PDF viewer on the Mac Anyone know why, or can suggest a more robust mechanism? On 15 February 2012 10:18, Ian Lawrence wrote: > At the moment I have two bits of code that conspire to build a link to > a file that is on a website. > > So, variables set on a per-document basis, giving the folder: > > swfURLPath=3D{http://some location or other/PN01_media/}, > supportURLPath=3D{http://some location or other/PN01_support/}, > > These combine with a macro, ending with: > > =A0[url(\swflocation#1/#1.swf)]} > > and a piece in the actual file that gives the filename to be retrieved > > \PlaceSWF{ModelACircuit} > > What I'd like to do is be able to alter swfURLPath to designate a > local folder for retrieving =A0the swf and launching it in a browser > > Same thing for the supportURLPath, which always opens PDFs in a browser. > > I tried stuff like: > > swfURLPath=3D{\\PN01_media/}, > supportURLPath=3D{\\PN01_support/}, > > And have trawled the context wiki and documentation, but cannot find > anything authoritative on linking to local files using relative > references, as you might in html. > > I'm keen not to try and use the same hooks so that I can switch back > and forth between remote and local access to the supporting files. > There is a good reason for this - honest. > > Thanks in anticipation. > > Ian ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________