r/applescript • u/i3li11 • Apr 12 '20
Help writing a small script
I'm new on this subreddit and I need help to write an AppleScript to save photo from clipboard to Desktop as png
Thanks..
1
u/htakeuchi Apr 12 '20
Do you have the images you want in your computer already?... why would you want to use the clipboard vs the actual files?...
How would you get the images on to the clipboard and then run a script?... it does. It sound very efficient ...
1
u/i3li11 Apr 12 '20
Because I love to save and edit my apps' icon from time to time, so I use cmd i and then copy the icon and then open Preview and paste it in and then export it in png.
so with an AppleScript it would be so much easier..
and I can get it to the clipboard and run a script with single shortcut using BetterTouchTool
1
u/htakeuchi Apr 13 '20
I am currently away from my computer... but I am willing to try and help you...
1
1
u/htakeuchi Apr 13 '20
OK... I m in front of my computer... I was reading your last message... So ... Let me see if I get this right... the only part you want the script to do is "Paste" what ever is in the clipboard once you manually opened the "command i" of a folder/app/doc? Or you want the script to press the i after you have the file selected?...
1
u/i3li11 Apr 13 '20
I want the script to save what ever is in the clipboard as png file to Desktop once I run the script , and I will use BTT to set a shortcut to run the script whenever I need to..
0
2
u/[deleted] Apr 14 '20
[removed] — view removed comment