* Re: Start of application within a context document
@ 2005-09-08 9:33 Stephen A. Tjemkes
0 siblings, 0 replies; 6+ messages in thread
From: Stephen A. Tjemkes @ 2005-09-08 9:33 UTC (permalink / raw)
Will try this
thanks
stephen
>>> pragma@wxs.nl 08/09/05 10:22:06 >>>
Stephen A. Tjemkes wrote:
>Hi,
>
>If you excuse my ignorance, but I am looking for a simple example how to launch an executable (a tcl/tk script in my case) from within a pdf document prepared by context.
>
>During a presentation i would like to show some graphics which are generated through the execution of a tcl/tk script.
>One could close the pdf file and open the tcl/tk script, but it would be nice if one could symbolically link the script within the pdf file.
>Because I prepare the pdf file using context, I searched the context manuals, but didnot find a solution to this problem.
>
>Therefore if somebody has solved this already and is willing to share his/her experience I would be grateful
>
>
the best way to do it is to make a cmd file (batch file) and use the \goto{whatever}[program(somename.cmd)] feature; this kind of functionality has never been robust in acrobat and batch files permit you to set up things properly (paths, command line arguments, etc);
an alternative is to use http requests and a local http server, but then you end up with acrobat waiting for some response (url or submit methods)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 6+ messages in thread
* Start of application within a context document
@ 2005-09-08 6:33 Stephen A. Tjemkes
2005-09-08 8:22 ` Hans Hagen
0 siblings, 1 reply; 6+ messages in thread
From: Stephen A. Tjemkes @ 2005-09-08 6:33 UTC (permalink / raw)
Hi,
If you excuse my ignorance, but I am looking for a simple example how to launch an executable (a tcl/tk script in my case) from within a pdf document prepared by context.
During a presentation i would like to show some graphics which are generated through the execution of a tcl/tk script.
One could close the pdf file and open the tcl/tk script, but it would be nice if one could symbolically link the script within the pdf file.
Because I prepare the pdf file using context, I searched the context manuals, but didnot find a solution to this problem.
Therefore if somebody has solved this already and is willing to share his/her experience I would be grateful
Thanks
Stephen
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Start of application within a context document
2005-09-08 6:33 Stephen A. Tjemkes
@ 2005-09-08 8:22 ` Hans Hagen
2005-09-08 15:10 ` Peter Münster
2005-09-08 18:57 ` Mojca Miklavec
0 siblings, 2 replies; 6+ messages in thread
From: Hans Hagen @ 2005-09-08 8:22 UTC (permalink / raw)
Stephen A. Tjemkes wrote:
>Hi,
>
>If you excuse my ignorance, but I am looking for a simple example how to launch an executable (a tcl/tk script in my case) from within a pdf document prepared by context.
>
>During a presentation i would like to show some graphics which are generated through the execution of a tcl/tk script.
>One could close the pdf file and open the tcl/tk script, but it would be nice if one could symbolically link the script within the pdf file.
>Because I prepare the pdf file using context, I searched the context manuals, but didnot find a solution to this problem.
>
>Therefore if somebody has solved this already and is willing to share his/her experience I would be grateful
>
>
the best way to do it is to make a cmd file (batch file) and use the \goto{whatever}[program(somename.cmd)] feature; this kind of functionality has never been robust in acrobat and batch files permit you to set up things properly (paths, command line arguments, etc);
an alternative is to use http requests and a local http server, but then you end up with acrobat waiting for some response (url or submit methods)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Start of application within a context document
2005-09-08 8:22 ` Hans Hagen
@ 2005-09-08 15:10 ` Peter Münster
2005-09-08 18:57 ` Mojca Miklavec
1 sibling, 0 replies; 6+ messages in thread
From: Peter Münster @ 2005-09-08 15:10 UTC (permalink / raw)
On Thu, 8 Sep 2005, Hans Hagen wrote:
> an alternative is to use http requests and a local http server, but then
> you end up with acrobat waiting for some response (url or submit methods)
Or you tell acrobat to use "your-script" instead of "mozilla" as browser.
Cheers, Peter
--
http://pmrb.free.fr/contact/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Start of application within a context document
2005-09-08 8:22 ` Hans Hagen
2005-09-08 15:10 ` Peter Münster
@ 2005-09-08 18:57 ` Mojca Miklavec
2005-09-08 19:45 ` Hans Hagen
1 sibling, 1 reply; 6+ messages in thread
From: Mojca Miklavec @ 2005-09-08 18:57 UTC (permalink / raw)
Hans Hagen wrote:
> \goto{whatever}[program(somename.cmd)]
Great! But how can I pass parameters?
\goto{http://contextgarden.net}[program(C:\\windows\\system32\\shutdown.exe)]
only prints a help message (pretty unuseful) and
\goto{http://contextgarden.net}[program(C:\\windows\\system32\\shutdown.exe -s)]
says that the file wasn't found.
(the rest works as expected, esp. once you check the box "do not show
this warning again")
Mojca
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Start of application within a context document
2005-09-08 18:57 ` Mojca Miklavec
@ 2005-09-08 19:45 ` Hans Hagen
0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2005-09-08 19:45 UTC (permalink / raw)
Mojca Miklavec wrote:
>Hans Hagen wrote:
>
>
>
>>\goto{whatever}[program(somename.cmd)]
>>
>>
>
>Great! But how can I pass parameters?
>
>\goto{http://contextgarden.net}[program(C:\\windows\\system32\\shutdown.exe)]
>only prints a help message (pretty unuseful) and
>\goto{http://contextgarden.net}[program(C:\\windows\\system32\\shutdown.exe -s)]
>says that the file wasn't found.
>
>(the rest works as expected, esp. once you check the box "do not show
>this warning again")
>
>
long time not done, so a guess -)
\goto{http://contextgarden.net}[program(C:\\windows\\system32\\shutdown.exe{-s})]
anyhow, as with more things the pdf specs promise more that is possible. This is why i suggested using
c:\\myscripts\mojca-wants-to-shut-down.cmd
which then calls
c:\windows\system32\shutdown.exe -s
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-09-08 19:45 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-08 9:33 Start of application within a context document Stephen A. Tjemkes
-- strict thread matches above, loose matches on Subject: below --
2005-09-08 6:33 Stephen A. Tjemkes
2005-09-08 8:22 ` Hans Hagen
2005-09-08 15:10 ` Peter Münster
2005-09-08 18:57 ` Mojca Miklavec
2005-09-08 19:45 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).