drac030 Posted October 8, 2021 Share Posted October 8, 2021 This depends. It certainly saves you the manual access to that simple directory structure (changing the drive/dir in the SC panel, for example, just to copy one file from there, then change it back). If the file manager allows to create any file type without that, it can be more convenient, especially if there is a file association mechanism implemented in the shell (like RUNEXT in SDX). But in reality, the implementation may be more complex than it is worth, considering that we do not seem to have many complex data files which need to be specially structured before use. Maybe BAS, M65... music tracker modules... and ATR which can already be created in CLI using dedicated software. 1 Quote Link to comment Share on other sites More sharing options...
Harry Potter Posted October 9, 2021 Author Share Posted October 9, 2021 drac030, you got it. The DOS version requires you to add file types and groups first. A group is an organization method and can be considered a "purpose." If you still need help, just reply here. Quote Link to comment Share on other sites More sharing options...
Harry Potter Posted October 9, 2021 Author Share Posted October 9, 2021 BTW, I'm working on file compression for the CBM, DOS and upcoming Atari8 and Apple 2 versions of Template Creator. That's why I was asking about file compression. Would it help? Quote Link to comment Share on other sites More sharing options...
drac030 Posted October 18, 2021 Share Posted October 18, 2021 (edited) This would be less or more this in SpartaDOS X batch language: ;-NEW FILENAME.EXT ; PATHSPL %1,,,,,%X IF EXISTS $TEMPLATES$>*.$%X$ COPY $TEMPLATES$>*.$%X$ %1 ELSE COPY NUL: %1 FI This requires the PATHSPL.COM command, which needed to be written and will be available on a next SDX Toolkit disk release. The $TEMPLATES$ environment variable must point to a directory containing the "templates", i.e. stub files for each filename extension. If one is not present, a 0-length file will be created, otherwise the template will be copied to the file name given as the parameter. The batch file of course can be made a bit more complicated by adding "categories", i.e. subdirectories to the directory pointed to by the $TEMPLATES$ variable, it will make it - the BAT file - about 8 lines longer. The PATHSPL command just splits the given pathname into device, path, full name, base name and extension. Edited October 18, 2021 by drac030 removed debug stuff from listing 3 Quote Link to comment Share on other sites More sharing options...
Harry Potter Posted October 27, 2021 Author Share Posted October 27, 2021 I know I'm being annoying: I annoy people a lot, but does anybody have a template to donate? Maybe a cc65 code snippet, or a mostly-empty disk image? Maybe a document related to the Atari emulation? I will soon port the program to the Atari 8-bit series. Quote Link to comment Share on other sites More sharing options...
sanny Posted October 28, 2021 Share Posted October 28, 2021 Joseph, aka Harry, are you really real? Or an artificial intelligence which emerged from the all-embracing internet? Seeded by aliens. 1 Quote Link to comment Share on other sites More sharing options...
ilmenit Posted October 28, 2021 Share Posted October 28, 2021 6 hours ago, Harry Potter said: I know I'm being annoying yes, you are and you even know it, so can you stop, please? 2 1 Quote Link to comment Share on other sites More sharing options...
TGB1718 Posted October 28, 2021 Share Posted October 28, 2021 I still can't believe that he thinks this tool is so great, following the thread, no one can figure out how to use it, what benefits it provides for us, and so many times a working example has been asked for, but nothing !!! From personal experience, templates/boilerplates are generally used by organisations who need consistency in the way software/documentation is written and therefore a template/boilerplate is created as a starting point for new programs/software and documentation. In our environment, each program will probably be very different from the previous and there would be no need for this. Quote Link to comment Share on other sites More sharing options...
+DjayBee Posted October 28, 2021 Share Posted October 28, 2021 10 hours ago, Harry Potter said: I know I'm being annoying: I annoy people a lot, but does anybody have a template to donate? Maybe a cc65 code snippet, or a mostly-empty disk image? Maybe a document related to the Atari emulation? I will soon port the program to the Atari 8-bit series. I guess that @funkheld can help you out on this. 2 Quote Link to comment Share on other sites More sharing options...
sanny Posted October 28, 2021 Share Posted October 28, 2021 ? Quote Link to comment Share on other sites More sharing options...
Harry Potter Posted October 28, 2021 Author Share Posted October 28, 2021 I've been trying to explain Template Creator here. I'm sorry for not being clear. Basically, TmpCreat is a way to make copies of template files. Template files can be, for example, a code snippet to be reused over and over. I use it to create empty disk images. It can also be used for resumes or school work. Quote Link to comment Share on other sites More sharing options...
Wrathchild Posted October 28, 2021 Share Posted October 28, 2021 I have the feeling the Use cases just aren't convincing enough for people who probably can already do this is other ways. Quote Link to comment Share on other sites More sharing options...
TGB1718 Posted October 28, 2021 Share Posted October 28, 2021 52 minutes ago, Harry Potter said: a code snippet to be reused over and over. Macro's/Libraries 1 Quote Link to comment Share on other sites More sharing options...
Harry Potter Posted October 28, 2021 Author Share Posted October 28, 2021 Well...you could use an otherwise empty main() routine with some start-up code you need often, i.e. set colors, clear screen, load data and perform other start-up tasks. Quote Link to comment Share on other sites More sharing options...
Harry Potter Posted October 28, 2021 Author Share Posted October 28, 2021 Or a module that displays a menu--you can fill in the details for each needed copy. Quote Link to comment Share on other sites More sharing options...
drac030 Posted October 28, 2021 Share Posted October 28, 2021 Or special startup code which does its best to overwrite the binary loader 3 Quote Link to comment Share on other sites More sharing options...
ivop Posted October 28, 2021 Share Posted October 28, 2021 (edited) Using a template for me is: cd ~/atari mkdir new_project cd new_project copy an existing main cp ~/somewhere/main.s . vi main.s or do some "native" development. cp ~/templates/atmas.atr . atari800 atmas.atr etc.... Edited October 28, 2021 by ivop 2 Quote Link to comment Share on other sites More sharing options...
TGB1718 Posted October 28, 2021 Share Posted October 28, 2021 3 hours ago, drac030 said: Or special startup code which does its best to overwrite the binary loader ??? Quote Link to comment Share on other sites More sharing options...
+Stephen Posted October 28, 2021 Share Posted October 28, 2021 Or something as simple as click on file, ctrl+c, ctrl+v. Voila - wow. A copy is made. For the cli lovers, "copy old.xex new.xex". 1 Quote Link to comment Share on other sites More sharing options...
glurk Posted October 28, 2021 Share Posted October 28, 2021 Yeah, this looks like an effort to write a program that no one ever asked for, to fill a need that no one ever had. And if I wanted to create ATR images, I'd be doing that on a PC (Win., Linux, Mac, etc,) and not on the Atari itself.... Quote Link to comment Share on other sites More sharing options...
ilmenit Posted October 29, 2021 Share Posted October 29, 2021 14 hours ago, ivop said: cp ~/templates/atmas.atr . atari800 atmas.atr this is also my point of view. The whole functionality of this utility is similar to first making a directory structure e.g. templates/platforms/files like templates/atari-doses/bw-13.atr and then invoking a copy command. Basically two operations much simpler and less time consuming than using the tool. There are different types of utilities, but they should bring some value e.g. be time-savers that can automate tedious tasks, while this tool does not seem to do it. 1 Quote Link to comment Share on other sites More sharing options...
TGB1718 Posted October 29, 2021 Share Posted October 29, 2021 Also if you want a disk image already formatted and whatever size you want "Altirra", simple Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.