Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Test wpd2html manually in Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Test wpd2html manually in Terminal
Authored by: deef on Sep 08, '06 07:31:42PM

This will allow you to figure out whether the problem is with OnMyCommand or the wpd2html installation, by manually calling the commands.

1) open a new terminal window
2) type wpd2html pathtoyourfile/yourfilename > /~.wpdpreview.html

if you get the following response:

-bash: wpd2html: command not found

then follow the steps above to add wpd2html to your PATH

if you just get a blank line, things are probably working...

3) type

open ~/.wpdpreview.html

this should open your browser displaying yourfilename

If this works, then the problem is somewhere in OnMyCommand. The most likely problem is that (if you use OMCEdit) you have Execution Mode set to something other than Terminal -- or if you're editing the OMC preferences file manual, you have the following lines

<key>EXECUTION_MODE</key>
<string>exe_terminal</string>

but with something other than exe_terminal in between the string tags directly below the EXECUTION_MODE key. For reasons unknown to me, the command only works when the Execution Mode is set to Terminal



[ Reply to This | # ]