- Posted by
- Now, I try this to get the current document name only. var filepath = UltraEdit.activeDocument.path + "\r\n"; var i = filepath.lastIndexOf("\\"); var filename = filepath.slice(i + 1); And now there is another problem, maybe it is a bug. I want to get the current date only. not include the time. So I...Posted in Scripts
-   Topics
-   Views
- popo77
Apr 19, 2007
- Yeh, it does work. Thanks a lot. By the way, I notice that the 'path' command does not list in the help file as someone(sorry, forgot your name),just in the forums, has already pointed out. Are there another unlisted commands? Thanks for your reply again.Posted in Scripts
-   Topics
-   Views
- popo77
Apr 19, 2007
- hello everyone. I want to copy the name of active document to a variable as a string, but I find "paste" command just paste it to the file and can not set to a variable. How can I do that? I use it like below UltraEdit.activeDocument.copyFilePath(); ... UltraEdit.activeDocument.paste();Posted in Scripts
-   Topics
-   Views
- popo77
Apr 18, 2007