Set Label of multiple files parent folders?

Hi,

Can anyone tell me if this can be done easily with opus, and the best way to go about it... Or will I need to script with VB?

{1st part I've done}

  1. I want to filter a directory (and all sub-directories) to reveal only all files that don't have any LABELS (Red, Blue, Green etc).

Set FLATVIEW=MixedNoFolders select NONE Select "LABEL-NONE" FILTER FILTERFLAGS=hidenomatch
btw the "LABEL-NONE" is what I called a filter I made to match No Labels

Now I want to use all the selected resulting files, and set the label of their individual parent folders (eg red).

So I filter a directory structured like below:

FOLDER\files
FOLDER\FOLDER\files
FOLDER\FOLDER\files
FOLDER\files
FOLDER\FOLDER\files

Some folders may have subfolders and some may not. But the folders that I want to change the label on are the top level ones (bold) (of the directory I filtered).

Does this make any sense?

Think it might be a bit hard to tell it to color top level parents of the directory I just filtered and not the entire sourcepath.

[code]Set FLATVIEW=MixedNoFolders
select NONE
Select "LABEL-NONE" FILTER FILTERFLAGS=hidenomatch

Properties SETCOLOR="red" {filepath$|..|..}
Properties SETCOLOR="red" {filepath$|..}
[/code]

This will color parent 1 and parent 2 of the files it found during the filter.

BUT, is there any way I can say color parent1 + parent2 - ONLY UP TO a certain level (ie the level where I filtered from). Otherwise, it's going to be coloring a directory too high.

eg
TOPFOLDER (Directory where I do the flatview filter inside of / and I only want the subfolders to be colored not this one)
FOLDER1\Folder1a\file
Folder2\file

[ul][li]File found in filter from Folder1a will color the first and second level parent up (Folder1a + Folder1). [FINE][/li]
[li]File found in filter from Folder2 will color the first and second level parent up (Folder2 + TOPFOLDER) - The TOPFOLDER is too high, I don't want it to color that one or before it. So I just need a way to say not to color at TOPFOLDER point or before.
[/li][/ul]

I think you will need to use some kind of scripting to do that.

There's no command in Opus to say "apply a label to all folders in this file path between folder X and folder Y on the path."

(At least, I think that's what you're looking for. Sorry if I've misunderstood.)

Yeh that's it.
Okay then it isn't important, it will on be one folder usually that I have to reset.

Also, Does opus have any way of pausing yet? Because it needs to wait for the flat view to sort itself out before going on, otherwise I need to run it in 2 buttons.

[quote]
Set FLATVIEW=MixedNoFolders
select NONE

----PAUSE HERE wait for flat view to finish doing its thing-----

Select "LABEL-NONE" FILTER FILTERFLAGS=hidenomatch
Properties SETCOLOR="red" {filepath$|..}
Properties SETCOLOR="red" {filepath$|..|..}[/quote]

And one last thing. Is there any way to say to select ONLY the first file PER folder - when in a filtered flat view. So it doesn't run the next command on every file, but only the first file of each directory (so it's faster).