SysInternals did the trick.
Inkscape converts swf files in temp directory. For example: E:\Documents and Settings\Juho\Local Settings\Temp\ink_ext_XXXXXXKR52BU.swf
But it won't save this file to desktop with the name I give it in saving dialog. Inkscape creates new empty file with that name and puts it to desktop.
pdf2swf is called like this: pdf2swf.exe E:\DOCUME~1\Juho\LOCALS~1\Temp\ink_ext_XXXXXXKR52BU "E:\DOCUME~1\Juho\LOCALS~1\Temp\ink_ext_XXXXXXKR52BU.swf"
When the command I use is this: pdf2swf.exe %1 "%~dp1%~n1.swf"
Temporary file name is passed to this command like this, I think. gspawn-win32-helper.exe 19 20 z 14 17 "E:\Program Files\Inkscape" y y - "E:\Program Files\Inkscape\share\extensions\pdf2swf.cmd" E:\DOCUME~1\Juho\LOCALS~1\Temp\ink_ext_XXXXXXKR52BU
How could I pass the save dialog name to second argument?
gspawn-win32-helper.exe ... - "E:\Program Files\Inkscape\share\extensions\pdf2swf.cmd" E:\DOCUME~1\Juho\LOCALS~1\Temp\ink_ext_XXXXXXKR52BU <SAVE DIALOG NAME>
-Juho-
Juho Viitasalo kirjoitti:
Ok. I found the extension-errors.log, but it doesn't mention pdf or swf extensions.
I'll try that Sysinternals tool. Thanks.