A little background:
I've been coding a custom HTML template and one of the last things that I need to do is to create a custom interface for it.
I need a way to export HTML and Images without using the Fireworks Export dialogue box (File > Export or Ctrl + Shift + R). In other words I want to create a JSF file that will export HTML and images (and later I will create a SWF that will control the different options), and I've found a way to do this but I can't seem to find a way to put images in a subfolder. Currently this is the code that I have that controls the export:
var html_folder = fw.browseForFolderURL("Choose Folder"); var html_name = "test.html"; var img_folder = "/images/"; var html_settings = new ExportSettings();// this controls all the export settings except for the "put images in subfolder" checkbox!! html_settings.exportFilesStyle = "HTML and Images"; html_settings.fileExtension = "html"; html_settings.htmlDestination = "same"; html_settings.sliceAlongGuides = false; html_settings.sliceUsingUrls = true; html_settings.templateName = "MyTemplate"; fw.exportHtmlAndImages(null, html_file, html_folder + img_folder);
According to the Docs, fw.exportHtmlAndImages() uses the third argument to either export an image and name it if it's a single image, or export the images into a folder of that name if there are multiple images, but this does not work! Any help is appreciated. Thanks.