Loading ...
Sorry, an error occurred while loading the content.
 

Re: save buffer with the same filename, but with different extension

Expand Messages
  • dsjkvf
    ... if anybody is interested: set-variable $FILE_TMPNAME &lef $buffer-bname -4 set-variable $FILE_NEWNAME &cat $FILE_TMPNAME .EXT2 write-buffer $FILE_NEWNAME
    Message 1 of 2 , Nov 6, 2006
      On 11/6/06, dsjkvf <dsjkvf@...> wrote:
      > and one more question: is it possible somehow to macro the following
      > action -- i want to save an open file FILENAME.EXT1 as FILENAME.EXT2.
      >
      > of course, it's no pain at all to do it manually, but since i want to
      > add this procedure at the end of a macro, after a number of other
      > transformations, it would be very handy to automate this too.

      if anybody is interested:

      set-variable $FILE_TMPNAME &lef $buffer-bname -4
      set-variable $FILE_NEWNAME &cat $FILE_TMPNAME ".EXT2"
      write-buffer $FILE_NEWNAME

      :)


      --
      dsjkvf
    Your message has been successfully submitted and would be delivered to recipients shortly.