Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - multitek

Pages: [1]
1
Hello,

I'm trying to create a button/hotkey that would create a new empty textfile (without extension) in source and name it ideally using the filename (also without extension) of the file currently selected in source, or if that's not possible from clipboard.

Example with name from selected in source:
In source I select a file named: NiceName.whatever (the extension is irrelevant, could be anything)
Running the script does the following:
1. takes NiceName from the selected file
2. creates a new empty text file in source
3. names it NiceName (the filename doesn't have any extension at all)

The clipboard variant:
I copy the name I want to the clipboard, for example ClipboardName
Running the script does the following:
1. creates a new empty text file in source
2. names it ClipboardName (again no extension, what's on the clipboard is the full name)


optional bonus: doing this on multiple files at once. So I select multiple files and the script performs the described procedure on all of them.

I've been going through the documentation for a while now, but sadly haven't found a way to create such a script, so your help is much appreciated.

Pages: [1]