home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.applications
- Path: sparky!uunet!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!fstop.csc.ti.com!waves.pas.ti.com!macanespie
- From: macanespie@waves.pas.ti.com (Alan MacAnespie)
- Subject: Re: Trying to add a Gadget to DirOpus - help me
- Message-ID: <1992Dec27.183125.1@waves.pas.ti.com>
- Lines: 39
- Sender: usenet@csc.ti.com
- Nntp-Posting-Host: waves
- Reply-To: macanespie@waves.pas.ti.com
- Organization: Texas Instruments, PAS
- References: <1992Dec21.005029.8562@news.ysu.edu> <1992Dec23.082258.10917@metapro.DIALix.oz.au>
- Date: Sun, 27 Dec 1992 23:31:25 GMT
-
- In article <1992Dec23.082258.10917@metapro.DIALix.oz.au>, bernie@metapro.DIALix.oz.au (Bernd Felsche) writes:
- >
- > 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?
-
- But how do you handle the situations where a file has more than one period
- (.) extension, like dragon.iff.sav.backup?
-
- I could imagine an expansion of that idea with a function could work from
- the left ({base}?) of the file, or from the right ({ext}?) to allow the
- extension or base name.
-
- A further expansion of this function would allow the extraction of a
- multiple basename. {f.base(2)} might allow dragon.iff.sav as a resultant
- name.
-
- >
- > In such situations, I wind up relying on the user (me) to
- > edit the name using the prompt option {aSomething: [o]}.
-
- Yep, that's what I do for most cases. Names like the above are usually the
- exception, not the rule.
-
- > Somebody with AREXX can easily do better, I expect.
-
- Definitely.
-
- > +-----+ Bernd Felsche _--_|\ #include <std/disclaimer.h>
-
- --
- Alan MacAnespie, || * Standard Disclaimers Apply Upstairs.*
- Texas Instruments, PAS || Is a person who writes many different
- macanespie@waves.pas.ti.com || applications a Renaissance Computist?
-
- How many bits would a BlitBlit blit if a BlitBlit could blit bits?
-