| razajac@gmail.com 2007-06-24, 8:11 am |
| I create commands for "exec <cmd> &" invocation from the "Open"
strings in the Windows registry.
I'll show some consoles. Here's an invocation of Firefox that works
wonderfully:
------------- start console -------------
XW,3.09,ttimes9,3,0 -> h -b lookup
Launching...eval exec -ignorestderr C:\\PROGRA~1\\MOZILL~1\
\FIREFOX.EXE -url "file:///J:/xword/help/lookup.html" -requestPending
&
Done.
XW,3.09,ttimes9,3,1 ->
------------- start console -------------
(Note the debug output of the command being executed.(after
"Launching...").)
This works fine.
But this one hangs:
------------- start console -------------
XW,3.09,ttimes9,3,1 -> h -p 000
Launching...eval exec -ignorestderr "C:\\Program Files\\Adobe\\Acrobat
7.0\\Acrobat\\Acrobat.exe" "J:\\xword\\docs\\MSAdobeDocs\
\000_TitlePage.pdf" &
Done.
XW,3.09,ttimes9,3,2 ->
------------- start console -------------
The app comes up, the file even loads, but then I get the hourglass,
and wind up having to ask the system to end the task ("End Now"), and
then have to deal with the followup system dialog request to report
the crash to headquarters.
Ditto with Word:
------------- start console -------------
XW,3.09,ttimes9,3,3 -> h -d 000
Launching...eval exec -ignorestderr "C:\\Program Files\\Microsoft
Office\\Office10\\WINWORD.EXE" /n /dde J:\\xword\\docs\\MSAdobeDocs\
\000_TitlePage.doc &
Done.
XW,3.09,ttimes9,3,4 ->
------------- start console -------------
Actually, this time, 1) I just get that standard Office app "splash
panel", which hoses up and doesn't refresh when other windows move in
front of it; then 2) when the tclsh is exited, a Word window comes up,
but I get a funky dialog telling me the file opened badly the last
time and asking if want to proceed to open it now, If I say "OK", then
the doc is NOT loaded, and once again the app hangs, necessitating a
system "End Now" operation to clean things up.
I'll bet this is old hat to someone out there!
I'll haunt the newsgroup, but please feel free to write:
razajac@gmail.com
-raz
|