Hi - I have installed a program where I highlight a Java object in a Textpad document (i.e. String, Vector, etc.) and it takes me to the documentation about that object.
The program is a perl program that I got off of the Textpad Add Ons section and in the documentation it says to enter
Command: cmd.exe
Parameters: perl javadoc.pl $Sel
Initial Folder: C:\Program Files\Textpad 4\System
However, when I run the program, the command prompt comes up but nothing happens. If I type in the parameters manually into the command prompt it works.
i.e. perl javadoc.pl String
will bring up the Java documentation for that Java String object - any ideas on this?
Passing parameters to cmd.exe in Tools menu
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
Al
Re: Passing parameters to cmd.exe in Tools menu
Hi,
TP 4.62 I been run Perl script(s) to do format/trim task on current doc (curdoc a *.pl file) working ok.
I don't call cmd.exe
Command: perl.exe
Parameters: D:\Scripts\trmldspc.pl $File
I've not yet needed to use the Initial Folder I leave it blank. The above there runs a trim any and all leading spaces from lines script on the current doc it works fine.
Then I also been use a Perl module named perltidy. Once installed, its installation leaves a .bat batch file with which to initiate. So it very easy: perltidy on the command line runs it.
Command: D:\Perl\bin\perltidy.bat
Parameters: $File -o=myfilename_tdy.pl
the -o= is an optional perltidy switch which gives me greater control over the name of the outputted file.
Once again it works fine for me by leaving the Initial Folder blank.
--
Al.
TP 4.62 I been run Perl script(s) to do format/trim task on current doc (curdoc a *.pl file) working ok.
I don't call cmd.exe
Command: perl.exe
Parameters: D:\Scripts\trmldspc.pl $File
I've not yet needed to use the Initial Folder I leave it blank. The above there runs a trim any and all leading spaces from lines script on the current doc it works fine.
Then I also been use a Perl module named perltidy. Once installed, its installation leaves a .bat batch file with which to initiate. So it very easy: perltidy on the command line runs it.
Command: D:\Perl\bin\perltidy.bat
Parameters: $File -o=myfilename_tdy.pl
the -o= is an optional perltidy switch which gives me greater control over the name of the outputted file.
Once again it works fine for me by leaving the Initial Folder blank.
--
Al.