Guys,
i'm writing a macro which needs open a file from file name. i used following code:
var project = ko.projects.manager.currentProject;
var part = ko.projects.findPart('file',module_file_name,'*', project);and it works for sometimes, but when i deleted project file and created new project (for the same file) it doesn't work anymore. any idea? i can see my file in projects pane and also its accessible via "Go to file".
otherwise i have plan to use ko.run.runCommand("grep ...."), harder but at least bullet proof.
tnx