Custom templates

templates

(Michel Lemieux) #1

Hi all,

any reason why creating a new script based on a custom template is asking me to save right away?

As opposed to opening an “untitled” script in SD…

Just wondering…
Michel


(Mark Alldritt) #2

If the template is for a bundled script, a script application (applet/droplet) or an enhanced applet, Script Debugger will ask you to save the script when it is created so that there is a folder hierarchy ready to receive bundle resources.

You can prevent this by adding a SaveBeforeEditing key with a boolean value of false/NO to your template’s TemplateInfo.plist file.


(Michel Lemieux) #3

Thanks,

I have set a custom icon for those script, is there any way to have it stick upon resaving?


(Mark Alldritt) #4

You need to alter the applet.icns or droplet.icns files within the template’s bundled Resources folder.