Re: [NTG-context] Start of application within a context document

2005-09-08 Thread Hans Hagen

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Start of application within a context document

2005-09-08 Thread Mojca Miklavec
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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Start of application within a context document

2005-09-08 Thread Peter Münster
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/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Start of application within a context document

2005-09-08 Thread Stephen A. Tjemkes
Will try this

thanks

stephen

>>> [EMAIL PROTECTED] 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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Start of application within a context document

2005-09-08 Thread Hans Hagen

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


[NTG-context] Start of application within a context document

2005-09-07 Thread Stephen A. Tjemkes
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

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context