On Tue, Nov 28, 2017 at 2:05 PM, Christophe Demarey <christophe.demarey@inria.fr> wrote:
Hi Mariano,

> Le 27 nov. 2017 �� 03:08, Mariano Martinez Peck <marianopeck@gmail.com> a ��crit :
>
> Hi guys,
>
> Thank you Christophe for continue pushing this useful tool!
>
> One small request which might be easy to do... Quite frequently I want to do something and re-save an image I have previosuly saved as a custom template (under Local root tree). Right now what I have to do so:
>
> 1) Make a new image from that template
> 2) remove template
> 2) do the thing and save the opened image.
> 3) go back to laucher and save that image as a new template (with the same name of the one I deleted)
> 4) delete the created image
>
> All that would be simplified if I could also launch my local templates. Is there any reason why is that not allowed? (at least for Local tree).

I needed to get a bit into the code to see what is done.
In PharoLauncher, when you download a template from the we, the template is stored in a folder (e.g. /Users/john/Library/Preferences/pharo/templateCache/) as well as some metadata for it.
PhLLocalTemplate class is used to build a list of locally available templates from the metadata file store in this folder.
As this folder is intended to be a cache, that���s why you cannot run it directly. You first need to unzip the template, create its metadata file.

Maybe an action on images: �� create template from image and delete image �� would help you (if it allows overriding of an existing template)?

Yeah, that would work for me. So the only manual thing I would have to do is 1) right?�� that is, I would need to first create an image from the template, do whatever I want with that image, and then�� �� create template from image and delete image ���� which would save that image as template (override it if exists) and delete the created image.��
If I understood correct, yes, it would achieve what I want.


BTW, as a separate matter, even if you�� the templates as a cache, I think it still would be nice to be able to delete a given one.��

��
You also have a �� recreate �� action on images able to recreate the image from the specified origin template.


OK


thanks in advance,��

--