Pre-formatted strings for File Drop

CotEditor has the following pre-formatted strings for the use of File Drop.

Pre-formatted stringWill be replaced with
<<<ABSOLUTE-PATH>>>The absolute path of the dropped file (i.e. source file).
<<<RELATIVE-PATH>>>The relative path from your document to the dropped file.
<<<FILENAME>>>The name of the dropped file with extension.
<<<FILENAME-NOSUFFIX>>>The name of the dropped file without extension.
<<<FILEEXTENSION>>>The file extension of the dropped file.
<<<FILEEXTENSION-LOWER>>>The file extension of the dropped file (lowercase).
<<<FILEEXTENSION-UPPER>>>The file extension of the dropped file (uppercase).
<<<DIRECTORY>>>The directory of the dropped file.
<<<IMAGEWIDTH>>>The image width (works only when you drop an image file).
<<<IMAGEHEIGHT>>>The image height (works only when you drop an image file).

Here are a few examples of what it's like to use pre-formatted strings.

example 1) When you drop foo.html:
Insertion format you set<a href="<<<RELATIVE-PATH>>>"></a>
The string actually inserted<a href="foo.html"></a>
example 2) When you drop foo.jpg:
Insertion format you set<img src="<<<FILENAME>>>" width="<<<IMAGEWIDTH>>>" height="<<<IMAGEHEIGHT>>>" />
The string actually inserted<img src="foo.jpg" width="160" height="80" />

See also