Code: Select all
$curItem = "<curitem>";
open (regexreplace(property("#Comment"),"[ \t]*[¶][ \t]*",""));
Thanks
i have files that store another file's full path in comment (the comment only contains filepath)
i want to write a script that retrieve the filepath in the comment of selected file ,then open it (open the file that path stored in comment, not the selected file
For example :
i have a file s.jpg ,the comment of s.jpg is "e:\documents\file.docx"
i want to open "e:\documents\file.docx" when selected "s.jpg"
so i wrote that code
It works but if the comment contains special characters like space, return characters (\r\n in regular expression) it won't workCode: Select all
$curItem = "<curitem>"; open property("#Comment");
XYplorer Beta Club