Leo
Please see example1, that is the way I run DO. Two horiz listers open, the 'utility panel' only showing the 'name matching' dialogue box. I simply activated the script you sent and shut down DO, re opened and look at example2, you will see the "utility panel" which is briefly open when DO starts, closes in about 1/2 second when the script runs, closing the 'utility panel' find function. As you can see I run the "find function", with only the "name matching" dialogue box showing, this allow more real estate for the 2 listers above. When I manually open the 'utility panel' find function I must re size it to look like E1.
(I have owned DO since 3/13/2011 and use it daily)
My question (This scenario is with your script off)
When I shut down DO for whatever reason it LOCKS THE FOLDER LOCK. I run DO with it UNLOCKED. When I re start DO the frick'in folder lock is now set to ON, previous version of DO did not have this "feature" ...... is this fixable, so it DOES NOT SET THE FOLDER LOCK WHEN shutting down and STARTING, and simply starts back up JUST AS IT WAS WHEN I CLOSED IT (wow .... what a concept)?
I DO NOT want the 'folder lock' set to on by the program, the previous version DID NOT DO THIS.
This version changes the 'find in' path, between closing and opening, the previous version DID NOT!
I currently do not use the script you sent, could it be modified to do the above?
I'd suggest trying another approach as we don't seem to be getting anywhere.
For example, close the Find panel by default (which will give you extra screen space when you are not using it), and make a button or hotkey to open it set to the folder you want it set to, as suggested as the start of the thread:
This is the current script @IfSet:UTILITY=Toggle,Find
Set UTILITY=Toggle @IfSet:ELSE
Find IN="D:\data"
How would I add a ^F (control F) to the end of this script? That way the 'utility panel' would re open without me having to manually do it.
Thanks for your help .... Gaks
One more question, I can't find a way to 'edit' the current script to add the 'Set UTILITY=Toggle' command. Do I have to add the modified script as a new script or is it possible to edit the current one?
Thanks .... Gary
[ul][li]Type /dopusdata/Script AddIns into Opus[/li]
[li]Find the .osp file you're interested in. Rename it to .zip. Extract it somewhere. You'll now have a .vbs file.[/li]
[li]Delete the original .osp file.[/li]
[li]Move the .vbs file to where the .osp file was (the Script AddIns folder).[/li][/ul]
I have tried inserting the Set UTILITY=Toggle, see below. The script stops functioning properly,
When I remove it the script function properly.
could you tell me the proper place it should be added?
Is the correct syntax ... cmd.addLine "Set UTILITY=on"
' Called by Directory Opus to initialize the script
Function OnInit(initData)
initData.name = "FindPanelFolderLock"
initData.desc = "Lock the Find Panel to a folder"
initData.copyright = "(C) 2014 Leo Davidson"
initData.version = "1.0"
initData.default_enable = True
initData.config.FindPath = "D:\Data"
End Function
' Called when a new Lister is opened
Function OnAfterFolderChange(afterFolderChangeData )
If Not afterFolderChangeData.Tab.Lister.Vars.Exists
("FindPanelFolderLock") Then
afterFolderChangeData.Tab.Lister.Vars.Set
"FindPanelFolderLock", True
If afterFolderChangeData.Tab.Lister.UtilPane
<> 0 Then
Dim cmd
Set cmd = DOpus.NewCommand
cmd.SetSourceTab
At least as you have posted it there, the script has been mangled by line wrapping somewhere along the line. That may be why it doesn't work, if the actual vbs file you are editing is the same.