Current Position:Home > File association for .rexx files

File association for .rexx files

Update:10-11Source: network consolidation
Hi all,
This will be my first post here. I've searched the web (and this forum) for an answer to my question, but have up untill now not been able to find it.
I have installed Regina Rexx, cuz I want to use that language as my command language. I've used it professionally for years in an IBM mainframe environment and at home on my Linux and Micro$oft machines.
Now I have it installed, and it works. Running rexxpcs gives me a whoppin' 8.462.623 executed clauses per second!
Gerard-iMac:~ gerard$ rexx /usr/share/regina/rexxcps.rexx
----- REXXCPS 2.2 -- Measuring REXX clauses/second -----
REXX version is: REXX-Regina_3.5 5.00 31 Dec 2009
       System is: UNIX
       Averaging: 10 measures of 30 iterations
       Performance: 8462623 REXX clauses per second
Now I would like to be able to start my xxxxxx.rexx files from within the finder. When I right click on such a file and open it's info pane - this is what every page on the subject suggests - I seem not to be able to allocate /usr/bin/rexx with my file(s).
1. How do I proceed?
2. Why (if not) does it not work this way?
Bear in mind that, however I consider myself computer literate, I am relatively new to the Apple domain...
Thanks in advance,

The Best Answer

Ok, I thought that's what you were trying to do but I just needed to be sure.
Since these kind of files are rexx interpreter files they are not applications and therefore cannot be directly executed from the finder.  And while you could get them to open in terminal the terminal has no way of knowing you want to use rexx on them.  So you need to encapulate (wrap) them to make them look like they are finder applications.
There are a number of shell command excapulators/wrappers.  One of my favorites is Platypus.   You can download it from macupdate.  Click that macupdate link because it suggests other shell wrappers than you may prefer as alternatives.  I'm mentioning this because if the shell commands generates any output (stdout, stderr) then not all of these wrappers handle output.  I haven't looked at Platypus for some time so I don't recall if it does or doesn't.  Maybe some of the alternatives do.
If the command doesn't generate any stdout/stderr output then Platypus (and many of the others) should work ok.  The end result is what looks like a normal finder application that you can execute.
Oh, almost forgot.  You could also encapsulate the shell commands using applescript.