Tip: Quick Exit from Quick Search

Support for our integrated Contact Manager, Calendar, and Project Tracker.
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Wed Aug 22, 2007 12:34 pm
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.
John Sindelar
SeedCode
Posts: 34
Joined: Wed Aug 15, 2007 3:17 am
Location: Mediterranean
PostPosted: Sat Sep 08, 2007 2:45 am
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).
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Sun Sep 09, 2007 8:42 am
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.
John Sindelar
SeedCode
Posts: 34
Joined: Wed Aug 15, 2007 3:17 am
Location: Mediterranean
PostPosted: Mon Sep 10, 2007 11:59 am
Thanks, that's helpful -as ever.

Return to SeedCode Calendar

Who is online

Users browsing this forum: No registered users and 4 guests

(855) SEEDCODE
[email protected]
Follow us: