AdiumX Search...

So, AdiumX has been updated today and one of the new things which I personaly like alot is search in contacts. finaly…

I’ve createde this QuickSilver action to let a user search for a specific username/alias in the contactlist, and then show a list
of all users found, the user can then select a name and press ok, AdiumX will open a new chatwindow with that user… For now
this is working , but i sure would like to see the list IN quicksilver, not via AppleScript, but I have no idea on how to do so
I think this really could be usefull for people, so I hope somebody would be kind to help me with this.


using terms from application "Quicksilver"
	on process text qsInput
		
		-- Get account name we search for in adium
		set searchContact to qsInput
		
		-- See if the account is set as away or online (some people are still online even with there status set to away, stupid :D)
		set contactList to {}
		tell application "Adium"
			repeat with users in (contacts whose display name contains searchContact and status type is available or status type is away)
				set contantName to display name of users
				tell users to set end of contactList to contantName
			end repeat
		end tell
		
		-- Select name from list.
		choose from list contactList
		set the contactThisUser to result as text
		
		-- Start new chat window with the user.
		tell application "Adium"
			repeat with user in (contacts whose display name is contactThisUser)
				if not (exists (chats whose contacts contains user)) then
					tell account of user to (make new chat with contacts {user} with new chat window)
				end if
				activate
			end repeat
		end tell
		
	end process text
end using terms from

/mkh