From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27601 Path: news.gmane.org!not-for-mail From: Matthias Weber Newsgroups: gmane.comp.tex.context Subject: Accessing local files to launch helper progam using \useURL and \from Date: Tue, 2 May 2006 20:45:20 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1146617402 30637 80.91.229.2 (3 May 2006 00:50:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 May 2006 00:50:02 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed May 03 02:50:00 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fb5Yw-0000r8-GZ for gctc-ntg-context-518@m.gmane.org; Wed, 03 May 2006 02:49:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2B0F5127A8; Wed, 3 May 2006 02:49:54 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15413-01; Wed, 3 May 2006 02:49:53 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0E457127A2; Wed, 3 May 2006 02:46:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ED190127A2 for ; Wed, 3 May 2006 02:46:19 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12380-08 for ; Wed, 3 May 2006 02:46:17 +0200 (CEST) Original-Received: from plounts.uits.indiana.edu (plounts.uits.indiana.edu [129.79.1.73]) by ronja.ntg.nl (Postfix) with SMTP id C57691277F for ; Wed, 3 May 2006 02:46:16 +0200 (CEST) Original-Received: from mail-relay.iu.edu (stjoseph.uits.indiana.edu [129.79.1.78]) by plounts.uits.indiana.edu (8.13.6/8.12.10/IUPO) with ESMTP id k430kDMG001242 for ; Tue, 2 May 2006 20:46:13 -0400 (EDT) Original-Received: from [10.0.1.4] (dial-126-63.dial.indiana.edu [156.56.126.63]) (authenticated bits=0) by mail-relay.iu.edu (8.13.6/8.12.10/IUPO) with ESMTP id k430jN9s004084 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Tue, 2 May 2006 20:45:30 -0400 (EDT) Original-To: Context Mailing List List X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:27601 Archived-At: Dear all, I am trying to us \useURL and \from with mixed success to access a local file so that it will be opened by a helper program. Both the program and the file to be opened by it reside in my local file system. Here is a small example: \setupcolors[state=start] \setupinteraction [state=start,color=blue] \useURL[cycloids][{file://3dxm/cycloids.stng}][][3DXM] \starttext \inmargin{\from[cycloids]} In this section, we study curves that are obtained by tracing a point on a fixed circle while it is rolling along another circle. \stoptext cycloids.stng is a file, that, when double-clicked, starts a program it is associated with. For trying, you can replace it by any other file that uses a special application to go with. Unfortunately, this *only* works with the pdf viewer in TeXShop (I am on a Mac). Preview doesn't do anything but beep, and Acrobat 6 offers a few choices, none of which is to open a helper application. Does anybody know if there is another way of launching helper applications when accessing documents? Also, while at it: When accessing local files, the URL appears to be absolute. Is there a way to use URLs relative to the location of the PDF that is referencing the URL? Thanks, Matthias