Link to home
Start Free TrialLog in
Avatar of Matt_Jones
Matt_Jones

asked on

Compact Workspace by script

Hi Guys
We have a workaraound solution to a problem with one of our Notes applications. The solution is to delete the database icon from the Workspace, compact the Workspace and then re-add the database. The trouble is that some of our user aren't too good within Notes (putting it nicely) and they end up deleting the Workspace, bookmarks and anything else they can find!
Is there any way we can write a button or similar that will do the three operations automatically? The remove icon and add icon seem to be fairly easily accomplished but I am struggling with compacting the Workspace.
Any help would be greatfully received.
This is fairly urgent so 500 points available!
Avatar of Bozzie4
Bozzie4
Flag of Belgium image

Put this in a button, on a memo, send it to the user

@Command( [WindowWorkspace] ) ;
@Command([FileOpenDatabase]; "Your Server":"yourDatabase.nsf" );
@Command([FileCloseWindow]);
@Command([EditClear])
Oh, and add
@PostedCommand([FileOpenDatabase]; "Your Server":"yourDatabase.nsf" );

again after that.
Avatar of Matt_Jones
Matt_Jones

ASKER

Yeah, that works fine for deleting an icon and adding it back on, but the problem I am having is that I need to Compact the workspace before adding the database back and I can't find a command that will let me do this. Unfortunately, your code does not include this functionality either.
OK, I can probably write a new solution, but you'll need R6 to run it
Sorry - still no good. We're running R5. Any suggestions?
ASKER CERTIFIED SOLUTION
Avatar of HemanthaKumar
HemanthaKumar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial