*************************************************************** * ExtensionAdd.DOPUS * >> Version 1.0 << ·Written by: DoMiNaToR· *************************************************************** INTRODUCTION ------------ Well, firstly the ".DOPUS" extension of the filename is self- explanatory of what the program is to be connected with. Yes, this is an ARexx program is for Directory Opus. If you are like me and have extensions on the end of filenames so you can quickly identify what the file contains, you get used to having the proper extensions of '.ILBM', '.8SVX', '.GIF' and so on. There is nothing I hate more than getting some new IFF-ILBM pictures and finding that they have '.pic' or '.iff' extensions instead of the correct '.ILBM'. So, I wrote this useful program to take the pain away from having to rename ALL your new files to have the correct extension. INSTALLATION & REQUIREMENTS --------------------------- 1. Copy the file 'ExtensionAdd.DOPUS' to your REXX: directory. 2. 'Directory Opus' 3. 'RexxMast' to be activated. (Just drag it into WBStartup) 4. The following libraries in your LIBS: directory... RexxSysLib.library (Supplied with ARexx) RexxSupport.library (Supplied with ARexx) [ I have NOT included ANY of these libraries with this program because I do not want any trouble whatsoever with copyright laws :-( ] NOTE: I haven't had the bad luck of using KS1.3 for years. I do NOT want to upset anyone by saying this, but I can't be bothered to test my programs on these machines any more. Anyway, you SHOULD be using KS2.0 or higher!. Besides, 1.3's don't have ARexx as a standard!. You don't know what you are missing.... USAGE ----- First you must create a button in DOpus. Load the Config editor and define a new button called 'Extension' or something similar. Now we will have to tell the button what to do. Click on New and set the cycle gadget to 'ARexx'. Type the following as the Command string... REXX:ExtensionAdd.DOPUS {f} Now save the configuration and return to DOpus. When back to the main screen, select some files and click the 'Extension' (or whatever you have called it) button. It should go through each one and remove any wrong extensions and replace them the correct ones. Note that if a file already has the correct extension, it will be skipped. Version 1.0 of ExtensionAdd.DOPUS recognises and adds the appropriate extension to these filetypes... EXTENSION FILETYPE --------------------------------------------------------------- .GIF Graphics Interchange File Format (Image) .ILBM IFF InterLeaved BitMap (Image) .JPG Joint Photographic Expert Group (Image) .TIFF Tagged Interchange File Format (Image) .8SVX IFF 8-Octave Sampled Voice (Sound sample) .guide AmigaGuide® Database (Linked Document) .info Workbench Icon Information (Icon) .LHA LHA (No idea what it stands for ?!) (Archive) .DMS Disk Masher (Archive) .CGM Computer Graphics Metafile (Scalable Image) .CLIP ProDraw CLIP (Scalable Image) .DR2D IFF 2D Drawing (Scalable Image) .AI Adobe Illustrator (Scalable Image) .EPS Encapsulated Postscript (Scalable Image) .AFM Adobe Type1 Font Metrics (Scalable..) .PFB Adobe Type1 Font Binary (.. Font) .PS PageStream (Document) .WW IFF Wordworth (Document) .PT Protext (Document) .ANIM IFF Animation (Animation) .MED MED Module (Music) .pp Powerpacker (Crunched Data File) .REXX ARexx (Source code) (WARNING: This filetype may cause some problems. It checks whether the first two characters of a file are '/' and '*') .AMOS AMOS (Source code) .CMUS IFF CMUS (Dunno what it stands for) - Musical Score EXAMPLES -------- Filename = FunnyFace.pic This picture is really an IFF-ILBM image, so the extension .pic will be removed and .ILBM will be added. The new filename is "FunnyFace.ILBM" Filenames = Beep.sam + Beep.sam.info This sound sample is really an IFF-8SVX sample, so the extension .sam will be removed and .8SVX will be added. However, the program will recognise that the file had an icon and so will rename that automatically. The new filenames are "Beep.8SVX" and "Beep.8SVX.info" QUICK SENTENCE -------------- I hope you will find this program as useful as I did! CREDITS ------- Idea and all programming by DoMiNaToR ARexx is Copyright © William S. Hawes Directory Opus is Copyright ® Jonathan Potter This program is FREELY distributable AS LONG AS the following files are included on the disk or in the archive... - 'ExtensionAdd.DOPUS' - 'ExtensionAdd.DOPUS.doc' Commercial usage IS allowed [ :-) ] as long as the original author's credit (ME!) is stated somewhere easily seen in the product and the above files are included.] REMEMBER: I mean my program, NOT the libraries by other people. (Unless, you are given permission by these people) COMMENTS -------- WARNING: Do NOT attempt to add an extension to files which already have an extension as the prefix. (e.g. "MOD.Song") If you try this on say, a MED module called "MOD.SingAlong", then it will actually get renamed to "MOD.MED". This is something that I haven't fixed yet - so BEWARE!! Even though at the moment, this program does not recognise many filetypes. I will be adding more time to time and rereleasing the latest version. The reason that I released this version as it is was because that I won't be able to work on this program for about another week or two yet, so instead of keeping people waiting, (that I promised I would write this program and give them a copy) I decided to release it. The next update is expected in about a week or two. LAST THINGS LAST ---------------- > Quick Advert < Have you heard my two great MED modules that have been uploaded around..... SWAMP-THING REMIX (named SWMPTHNG.LHA) POINT OF NO RETURN (named PONR.LHA) Everyone I have played them to, made good comments. So don't just take my word for it! Have you used my other useful ARexx program that has been uploaded around..... DirSend.DOPUS (DIRSEND.LHA) Download them ASAP! [ If you have a modem, I don't sadly :-( ] Thanks for using this program. Bye.. ***DoMiNaToR*** END OF FILE.