Page 1 of 1

Tip: Quick Exit from Quick Search

PostPosted: Wed Aug 22, 2007 12:34 pm
by John Sindelar
We're really loving the Quick Search feature in the new calendar, but often want to dismiss the search results after we've clicked through to our destination record. This little mod will close the search results window if you hold down the shift key while clicking on a result.

1. Edit the script "Search - Go to Results ( Line )" and declare a new variable at the beginning of the script:

Code: Select all
Set Variable [ $Window; Value: Get ( WindowName )]


2. At the very end of the script add this:

Code: Select all
If [ Mod(Get ( ActiveModifierKeys );2)=1 ]
Close Window [ Name: $Window; Current file ]
End If


That's it.

PostPosted: Sat Sep 08, 2007 2:45 am
by bigsox
Hi John, that's a great mod, but it doesn't work when the result you click on opens a mini window.

I've started to experiment with making the mod a subscript to be called with different parameters, but the layout work is a higher priority right now so I'm forcing myself to quit (I'd much rather be editing scripts than layouts).

PostPosted: Sun Sep 09, 2007 8:42 am
by John Sindelar
If you want it to work for Activity also (we didn't) then you just need to add another instance of the If / Close / End If section within the "Show one record" branch of the $Context = "Activity" section. Add this right before the Pause/Resume Script step.

PostPosted: Mon Sep 10, 2007 11:59 am
by bigsox
Thanks, that's helpful -as ever.