I tried to delete the theme image in PostDir.bsh if it is not used with this code:
if (deleteThemeImage) (
File x = new File(outputDirectory + "/folderimage.jpg");
try {
x.delete();
}
}
Change these things:
- Change the ( to a { on the "if" row
- Change new File(outputDirectory + "/folderimage.jpg"); to new File(outputDirectory, "folderimage.jpg");
- Delete the not-doing-anything- "try {" and "}" clause.