
aaron@...749... wrote:
I have no idea what Ted is talking about. :)
Lee, you just want to know where to save the files, right? I think a file chooser widget/dialog would be the most efficient way to pick a directory and I could use it in a few places too. Alternately you could make a pygtk interface of your own for the extension like was being done for the OCAL interface.
Well, that wouldn't work as well for an output extension. The life cycle goes something like this:
File dialog Extension preferences Extension execution Save to filename specified in file dialog
So, the script never knows what the filename it is save to really is. The reason for this is that we can go to filesystems which allow for placement of files on network drives that the extension itself doesn't have to support.
So, if the user saves to ftp://myserver.com/myfile the extension itself doesn't have to support this, Inkscape will take care of the network issues (well, gnome-vfs will) for it. Not to say that gnome-vfs is fully tied in today, but it will be (someday, I promise :) )
--Ted