Implementation of script double click action