Hi,
i have added customized menu from “Tools >> Customize >> ContextMenus” with python macros to open folder.
Now tell me how to get value of that cell where user will right click ??
import uno
import os
oDoc = XSCRIPTCONTEXT.getDocument()
def openSandboxDirFn():
oSheet = oDoc.CurrentController.ActiveSheet
oCell1 = oSheet.getCurrentSelection()
shNumber = oCell1.String
shDir = ('/jobs/'+shNumber)
os.system('xdg-open "%s"'% shDir)