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