I have a few scripts that do special actions from the source pane to the dest pane, such as renaming and copying files from source to dest.
I want to visually check the result on the dest pane and therefore, need a command to finely control the position of the dest view to "what has just happened and its surroundings".
At the moment, I hack my way with this kind of script:
In an ideal world, I could use a command such as:
Set FOCUS=Dest Item={myItem} Position=30%
Which would set focus on dest pane, with myItem positioned at 30% of the view (vertically from the top)
Alternatively
Set FOCUS=Dest Item={myItem} Position=5
Which would set focus on dest pane, with myItem positioned at the 5th elementin the view (from the top)
As you can see in my script, I have to badly emulate this with a lot of Select PREV and Select NEXT to obtain the part after Set FOCUS=Dest.
(and on top of this, I can only rely on an initial Select DATE=newest whereas I perfectly now the exact item I want to have the focus on)
Please also note the EXPANDBRANCH which is important in my usage.
But what are you aiming to do? Is it meant to line up something on one side with something on the other? How do you know which items to show where? (E.g. What happens if all the items don't fit on screen at once? Or if there aren't enough items above/below to get the result you want?)
To clarify, displaying only one item is already very good (obviously nobody can guarantee that a whole list of items does fit).
In a way, this is what I emulate in my crude attempt with:
Select NONE
Select DATE=newest MAKEVISIBLE=immediate
Go EXPANDBRANCH SETFOCUS
If I omit the bunch of Select PREV / Select NEXT, then the item is displayed in the last position of the view (according to MAKEVISIBLE=immediate)
But this is not good enough for two reasons:
the item can be in a branch. I try to circumvent this with Go EXPANDBRANCH SETFOCUS but then the item is not on screen, only the parent folder
I really prefer to view the item near the top position and I also need to see at least a few lines before the item.
As explained in my first post, this is to visually check the result of the latest action and the surroundings, e.g. "was there already a file with a similar name that I missed?"
I'm not proud of my hack code and as I said, it is very slow (the more Select you insert, the slower as Directory Opus inserts some delay each times)... but this is a real saver for me and I did include this in a lot of parts of my workflow.
Unfortunately, Select RANGE is not working for me here. I need to select an arbitrary item.
I have not found this in Directory Opus yet. The next best thing is Select DATE.
If I could have a Select NAME=xxxxx POSITION=5 MAKEVISIBLE, that would be perfect.