Below is small snippet to add a New Link under Search Result Action Menu by idocs script in resource file,
<@dynamichtml extra_setup_search_results_action_popups@>
<$exec rsAppendNewRow("PopupProps")
gt; <$exec setValue("PopupProps", "label", "<Add your label here>")
gt; <$exec setValue("PopupProps", "ifClause", "<Add your Conditions here>")
gt; <$exec setValue("PopupProps", "function", "<Add URL for which we need to link>")
gt; <$exec setValue("PopupProps", "class", "document")
gt; <$exec setValue("PopupProps", "id", "<Any id here>")
gt; <$include super.extra_setup_search_results_action_popups
gt; <@end@>
Label –> User Defined Label which should display for end User
ifClause Condition –> (dExtension like ‘doc’)
URL –> Any url as where to link (Ex:www.google.com)
Screenshot:


