Scripted paste of image from clipboard
Posted: 20 Jul 2023 13:34
I often use #206 paste image from clipboard to new png file for documentation
I want to make this more efficient in two respects if anyone can advise
a) I don't want to keep renaming the new created file. Most commonly I would want to name it the same as the currently selected file but with an appended serial number or a date/time. For example I might have a starting file
How to clean a cat.png
If I have that selected I would want the newly created file to be How to clean a cat -01.png or perhaps "how to clean a cat 20230714 1522.png"
Problem is I can't fine any scripted route to using the #206 that will take any optional filename
b) Sometimes pasting to jpg is more efficient for the type of material. I'm aware there is a tweak to change png to jpg pastes. However I don't want a permanent change - rather on the fly.
Many thanks for any helpful pointers or code.
I want to make this more efficient in two respects if anyone can advise
a) I don't want to keep renaming the new created file. Most commonly I would want to name it the same as the currently selected file but with an appended serial number or a date/time. For example I might have a starting file
How to clean a cat.png
If I have that selected I would want the newly created file to be How to clean a cat -01.png or perhaps "how to clean a cat 20230714 1522.png"
Problem is I can't fine any scripted route to using the #206 that will take any optional filename
b) Sometimes pasting to jpg is more efficient for the type of material. I'm aware there is a tweak to change png to jpg pastes. However I don't want a permanent change - rather on the fly.
Many thanks for any helpful pointers or code.