home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / applicat / 9587 < prev    next >
Encoding:
Text File  |  1992-12-23  |  1.9 KB  |  41 lines

  1. Newsgroups: comp.sys.amiga.applications
  2. Path: sparky!uunet!munnari.oz.au!uniwa!DIALix!metapro!bernie
  3. From: bernie@metapro.DIALix.oz.au (Bernd Felsche)
  4. Subject: Re: Trying to add a Gadget to DirOpus - help me
  5. Message-ID: <1992Dec23.082258.10917@metapro.DIALix.oz.au>
  6. Organization: MetaPro Systems, Perth, Western Australia
  7. References: <1992Dec21.005029.8562@news.ysu.edu>
  8. Date: Wed, 23 Dec 92 08:22:58 GMT
  9. Lines: 30
  10.  
  11. In <1992Dec21.005029.8562@news.ysu.edu>
  12.    ac463@yfn.ysu.edu (Rich Yauman) writes:
  13.  
  14. >This is the same line.  Ihave added a gadget that recognizes
  15. >file type.  It will regognize a .gif file and show it using a
  16. >.gif viewer, No problem.  The other function of the gadget calls
  17. >on a program called shamsharp, and converts the file to .iff.
  18. >My problem is this... it would name a file called dragon.gif
  19. >as dragon.gif.iff.  
  20. >My lline that I use reads C:shamsharp {fu} "{f}.iff"
  21. >now what I would like is for the new file to be named dragon.iff.
  22. >I'll keep working on it, but any ideas would be helpful.
  23. >Maybe if I use {fu} "{f}" maybe Shamsharp can handle it. I'll 
  24. >let you know how it goes
  25.  
  26. What DirOpus seems to be lacking is a "basename" function on
  27. the variables which allows you to strip off a filename
  28. extension (historical artifact -- I know it's not really an
  29. extension, just the part of the name). Did I put that on my
  30. wish-list, Jonathan?
  31.    e.g.    {b.ext} where .ext would be stripped off?
  32.  
  33. In such situations, I wind up relying on the user (me) to
  34. edit the name using the prompt option {aSomething: [o]}.
  35. Somebody with AREXX can easily do better, I expect.
  36. -- 
  37. +-----+ Bernd Felsche                     _--_|\  #include <std/disclaimer.h>
  38. | | | | MetaPro Systems Pty Ltd          /      \ bernie@metapro.DIALix.oz.au
  39. | | | | 328 Albany Highway,              X_.--._/         Fax: +61 9 472 3337
  40. |m|p|s| Victoria Park, Western Australia 6100  v        Phone: +61 9 362 9355
  41.