For selecting Editor tab with respect to gedit preferences
selecttabindex ('dlgPreferences', 'ptlPreferences', 1)