Script to backup template?

The right place to talk JavaScript
Post Reply
Wern-YuenTan
Posts: 7
Joined: Sun Jan 27, 2019 3:41 pm

Script to backup template?

Post by Wern-YuenTan » Thu Dec 26, 2019 10:07 pm

Is there a simple script to backup an entire template?

User avatar
F43nd1r
Posts: 49
Joined: Thu Jan 24, 2019 1:20 pm

Re: Script to backup template?

Post by F43nd1r » Sat Dec 28, 2019 4:25 pm

Can't you just copy the template file somewhere?

Wern-YuenTan
Posts: 7
Joined: Sun Jan 27, 2019 3:41 pm

Re: Script to backup template?

Post by Wern-YuenTan » Sat Dec 28, 2019 11:32 pm

F43nd1r wrote:
Sat Dec 28, 2019 4:25 pm
Can't you just copy the template file somewhere?
Not sure how that would work?
I make frequent changes to my template and would like to clicking on a shortcut or use a gesture to programmatically save my backups into the same template file (rather than go into the lighting menu to click on the backup function).

Wern-YuenTan
Posts: 7
Joined: Sun Jan 27, 2019 3:41 pm

Re: Script to backup template?

Post by Wern-YuenTan » Sat Jan 04, 2020 7:16 am

@F43nd1r I found on github your Multitool script: https://github.com/F43nd1r/Multitool/tr ... ool/backup

Can some of this be used in LL script editor to create a backup action that can be triggered via a LL script?

User avatar
F43nd1r
Posts: 49
Joined: Thu Jan 24, 2019 1:20 pm

Re: Script to backup template?

Post by F43nd1r » Tue Jan 07, 2020 1:20 pm

Can some of this be used in LL script editor to create a backup action that can be triggered via a LL script?
Technically yes, but you'd have to reimplement everything in javascript (lightning scripting only accepts js, while my app is in kotlin).

Post Reply