Author Topic: Templates  (Read 444 times)

ivan

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 27
  • Posts: 780
    • View Profile
Templates
« on: April 18, 2018, 04:52:15 pm »
I hope this is the right place for this question.

How does one create a template?

I am now moving everything from one of my old computers over to a nice new one I have just built and now I want to create the program objects for the large number of java apps that I use.  What I would like to do is create a template with the Path and File name for java already filled in to save retyping it 50+ times, the other fields can be copied and pasted from a text file.

Another thought

Since I have a text file with all the details, including icon name would it be possible to use something like a rexx script to do everything in one run and if so does anyone have such a script?

Neil Waldhauer

  • Sr. Member
  • ****
  • Thank You
  • -Given: 6
  • -Receive: 20
  • Posts: 350
    • View Profile
    • Blonde Guy
Re: Templates
« Reply #1 on: April 18, 2018, 05:09:09 pm »
To make a template, first create a Program Object with the features you want, then open the Properties, go to the icon tab and check the checkbox marked "Template."
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

André Heldoorn

  • Sr. Member
  • ****
  • Thank You
  • -Given: 38
  • -Receive: 9
  • Posts: 303
    • View Profile
Re: Templates
« Reply #2 on: April 19, 2018, 12:47:48 am »
Quote
Another thought

Since I have a text file with all the details, including icon name would it be possible to use something like a rexx script to do everything in one run and if so does anyone have such a script?
Not the first time this thought has popped up. The answer still in yes. Albeit instead of pasting "javalanche.jar" in a *.TXT you can append a "template line"to a *.CMD file. I.e. (pseudo code):

CALL CreateJavaObject 'name','javalanche.jar','C:\JAVAAPPS\Avalanche'

ivan

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 27
  • Posts: 780
    • View Profile
Re: Templates
« Reply #3 on: April 19, 2018, 06:05:51 pm »
Thanks guys.

It looks like a long task which ever way I go and now I have retired I don't have the night shift to do such things  ;)

André Heldoorn

  • Sr. Member
  • ****
  • Thank You
  • -Given: 38
  • -Receive: 9
  • Posts: 303
    • View Profile
Re: Templates
« Reply #4 on: April 20, 2018, 11:28:05 am »
Quote
It looks like a long task which ever way I go and now I have retired I don't have the night shift to do such things  ;)

An hour a day keeps the doctor away: https://www.os2world.com/wiki/index.php/Book_Review:_Teach_Yourself_REXX_in_21_Days.

You could try to convert your data to DATABASE.TXT-entries, by using REXX.

You could try to use a good data file format as an input file for a REXX installer.

Or you can insert your data in REXX installer(s). My own choice, which often replaces and sometimes improves existing installers as well. At the moment 12 scripts, each smaller than 64 KiB, are saving about a day of RSI per install, and less disk full-errors in case of really old IBM hardware (mainly due to not having to have two back-ups of about thew same package, WarpIN and installed package). Mostly lines with SysCreateObject, albeit you can write an own SysCreateJavaObject function in REXX with all of the default Java settings (e.g. always with an embedded EXENAME=D:\PROGRAMS\JAVA6\JAVAW.EXE).

With your background you may not need 21 days, unless there appears to be a time-consuming lack of talent. After having read such a book you may want to browse through the list of all available built-in Classic REXX functions.

All programs in the book should be available digitally, nowadays. Surely the sample programs in the book are. The Classic REXX learning curve isn't steep, unless you want to write SysCreateJavaObject as a REXX DLL function in C.

Eighter way the answer to the question of the thought is: yes, sure, unless the data file format is rubbish/useless.
« Last Edit: April 20, 2018, 11:29:48 am by André Heldoorn »