Solved

REXX file ext. association

Posted on 1997-09-18
4
326 Views
Last Modified: 2013-12-26
I should like to do the following:

Associate a file extension with an executable so that dropping a file object on another file (object pointing to a file) with such an extension will invoke the executable using the filespecs of the dropped and "receiving" file objects as parameters.

For instance, suppose I've got the executable "CONCFILE.CMD" which contains the line "copy %1 + %2 %1". I would then want to associate this executable with a file extension, let's say ".TST", so that dropping a file object onto a file (object) having the extension ".TST" would invoke the executable, with the result that the contents of the second file are added to those of the first.

Of course, double-clicking a ".TST" file object would still have to result in the "normal" associated executable (associated using e.g. AssoEdit) being called.

Can this be done using REXX?
0
Comment
Question by:degeus
  • 2
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
timur earned 100 total points
ID: 1292071
No.  When you drop object 1 onto object 2, what you're doing
is effectively starting object 2 and passing object 1 as
a parameter.  What you want to do is to have object 2 start
object 3, and this can only happen if object 2 is programmed
to do so.  A .TST file is not a program.  You would probably
have to create a new SOM class and integrate it with the
WPS.  This could be a very powerful feature, but it would
definitely require a new WPS class, which is very hard, if not
impossible, to write in Rexx.
0
 

Author Comment

by:degeus
ID: 1292072
Mmm, I was afraid so. Thanks for confirming my suspicions, though.

0
 
LVL 1

Expert Comment

by:timur
ID: 1292073
If you do develop such a WPS class, and keep it generic enough (perhaps with a REXX interface even), it could be EXTREMELY powerful - and you might actually make some decent money selling it.  However, I know nothing about WPS programming.  Stardock might be interested in it as an extension to Object Desktop, though.
0
 

Author Comment

by:degeus
ID: 1292074
Right, perhaps I should delve deeper into WPS programming - and who knows? I might uncover undreamt of riches (I doubt it, though, not at the speed I'll be learning SOM/WPS <g>).
Thanks for the comment,

Regards,

Marcus de Geus (Delft, NL).
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now