Accessing the parent folder name -- not entire path

I'm not sure if this is bad etiquette, but I'm crossposting this to both the DOpus group at Yahoo as well as here.

I'd like to know if someone knows of a way of accessing the parent folder name for use in a button command. Here's the scenario -- I regularly receive a folder with a number of single paged tiff files, and I use tiffcp to add them all into a new multipaged tiff. The filename of the new tiff file should be [foldername].tif. Here's what I've got now, and it works just fine, but for the lack of a means of accessing the parent folder name:

"c:\program files\gnuwin32\bin\tiffcp.exe" -c g4 {allfile$} new.tif

So, if my tif files were at [b]c:_image\foldername[/b], I want foldername.tif rather than new.tif.

Any way to do this?

Thanks

Since Opus 8.2 you have been able to do this:

"c:\program files\gnuwin32\bin\tiffcp.exe" -c g4 {allfile$} {sourcepath|nopath}.tif

Ok... that's a start, but it adds "Copy of" to the beginning of the filename. That's probably windows at work, but any ideas on avoiding that? Regex, I'm betting won't work, since I'm guessing the regex would be applied to sourcepath before "Copy of" is added by the os.

Also, I'm new to Opus -- where do I find the changes btw. what's in the manual and the current release? nopath wasn't listed as an argument for sourcepath in the manual I have.

Thanks![/quote]

I don't understand where "Copy Of" would be coming from, unless the actual folder itself is called "Copy Of xxx".

The 8.2 installer installs a PDF changes document in your Opus program folder - there should be a link to it in the start menu.

Appologies if this makes it on twice -- I already posted, but cookies issues interfered.

Woops! You're right. In my technical inebriation I forgot that I was working on a copy directory.

Cool. Thanks for your help -- I really appreciate it.

Hi tuirgin !

I'm curious .
Could you enlighten us about tiffcp ?
I see already it is also a linux app, but just what does it do?

I'm guessing it somehow layers tiff images.
With RAW images from digital cameras so popular now,
and tiff images the natural derivative of, could this program be of interest to other users?
Where can it be downloaded and how can it be used ?

For instance, is this the kind of thing the program accomplishes ?
This photo is a layered derivative of a photo of the Transit of Venus across the Sun.

Sorry if I'm wrong, it's only a guess.
The photo isn't mine, but IS my current desktop wallpaper.

:opussanta: porcupine

tiffcp is part of the libtiff package of libraries and binaries for working with tiff files -- converting to and from, merging multiple tiff files into a single multipage tiff (that's what I'm using tiffcp for) and otherwise dealing with the nuts and bolts of tiff files. Here's the overview list of tools in libtiff: http://www.remotesensing.org/libtiff/tools.html

And here's the gnuwin32 page for it: http://gnuwin32.sourceforge.net/packages/tiff-win32.htm

In my case, I am sending off 34"x22" pages (plats, architectural elevations, landscaping, aerials) to a service bureau and having them scanned to bilevel (1-bit, i.e b&w with no gray tones) tiff files. The bureau could never seem to figure out the multi-page tiff configuration, so they send them to me as 1page/tiff, and they are also inconsistent with the compression format they use (if any). I take all the individual pages (as many as 60 or 70 at times) and run them through tiffcp to set them to g4 compression and put them into a single multi-page tiff which is easier to deal with in our office imaging database.

The kind of tool you're thinking of is a raw-capable image manipulation program -- Photoshop, or for a gpl app: Gimp -- http://www.gimp.org. (I'm not sure if there's a raw plugin for gimp -- I haven't used it in a while, and don't have a camera that outputs raw files.) RAW is just a file format (or rather, a family of formats, since they're unique to the camera manufacturer) for losslessly compressing the unmodified pixel image created by the digital camera's CCD. It's more highly compressed than a TIFF (which is also lossless, as opposed to JPG which is lossy, meaning bits are removed to reduce size), and contains all the information about the image as recorded by the camera's sensors.

Thanks Much Turigin !
I'll look into this and I promise I'll get back to you on it.
Very interesting ! No grey tones huh?
Hmmm..... I'm wondering about lightscribe CDs and DVDs.
I doubt I'll bother with HP calculator images.

:opussanta: porcupine

bilevel files are quite small, then add g3 or g4 compression and they're smaller, yet. Any viewer worth it's salt will use some sort of antialiasing filter so that it appears as if it were grayscale. The application for bilevel tiffs is digitized office documents -- think of electronic faxes, for example.