lauch program from a tiddler

105 views
Skip to first unread message

La raison Marc

unread,
Aug 19, 2012, 9:47:37 PM8/19/12
to tiddl...@googlegroups.com
Hi,

I try to lauch program with javascript code, because i want; in a second time; to use tiddler values when i call the program).
My code is:

<script> 
 window.StartThis=function(CommandToRun) 

 if (window.ActiveXObject) { 
        var shellObject = new ActiveXObject("WScript.Shell"); 
        shellObject.run(CommandToRun); 
    } 

</script>

<html>
<a href="javascript:StartThis('C:\MyPath\texmakerx.exe')">Start texmaker</a>
</html>

It's fail completely, notting append!

(please, be indulgent for my english and my javascript knowledge)

Marc La Raison

TonyM

unread,
Aug 20, 2012, 6:08:49 AM8/20/12
to tiddl...@googlegroups.com, La raison Marc

La raison Marc

unread,
Aug 20, 2012, 12:45:28 PM8/20/12
to tiddl...@googlegroups.com
Thank,

I know, and use the LaunchApplication Plugin, may be i can use it for my project but...

Actually i use :
<<LaunchApplicationButton "TexmakerX" "Linux Emacs" "C:\ThePath\texmakerx.exe" "C:\MyPath\TW\test.tex">>

But i want to use the tiddler title in place of "C:\MyPath\TW\test.tex"
May be like this :
<<LaunchApplicationButton "TexmakerX" "Linux Emacs" "C:\Path\texmakerx.exe" tiddler.title>>

but i receive the message : "LaunchApplication cannot execute/launch file 'C:\Path\texmakerx.exe'

Thanks again

Marc La raison

De : TonyM <anthony...@gmail.com>
À : tiddl...@googlegroups.com
Cc : La raison Marc <larais...@yahoo.ca>
Envoyé le : lundi 20 août 2012 6h08
Objet : [tw] Re: lauch program from a tiddler

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To view this discussion on the web visit https://groups.google.com/d/msg/tiddlywiki/-/YEcDHjfB510J.
To post to this group, send email to tiddl...@googlegroups.com.
To unsubscribe from this group, send email to tiddlywiki+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.


Eric Shulman

unread,
Aug 20, 2012, 2:12:25 PM8/20/12
to TiddlyWiki
> But i want to use the tiddler title in place of "C:\MyPath\TW\test.tex"
> May be like this :
> <<LaunchApplicationButton "TexmakerX" "Linux Emacs" "C:\Path\texmakerx.exe" tiddler.title>>

To use a reference to tiddler.title as a macro parameter, you need to
enclose it within doubled curly brackets, like this:
<<LaunchApplicationButton ... {{tiddler.title}}>>
This causes the the tiddler.title variable reference to be processed
as an "evaluated parameter", so that its *value* is automatically
retrieved and substituted as the value of the macro parameter.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
http://www.TiddlyTools.com/#Donations

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
http://www.TiddlyTools.com/#Contact


La raison Marc

unread,
Aug 20, 2012, 8:54:09 PM8/20/12
to tiddl...@googlegroups.com
Thanks,

Again you save me a lot of time.
You're fantastic.

Marc La raison


De : Eric Shulman <elsd...@gmail.com>
À : TiddlyWiki <tiddl...@googlegroups.com>
Envoyé le : lundi 20 août 2012 14h12

Objet : [tw] Re: lauch program from a tiddler
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To post to this group, send email to tiddl...@googlegroups.com.
To unsubscribe from this group, send email to tiddlywiki+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages