I want to open an image on the desktop with the 'Quick Look', then screenshot it, and then open the new screenshot to take another one of it. In resume, I want to know how to screenshot an image that has just been screenshoted, endlessly. How can I do it on AppleScript?
I know it sounds kind of weird, but its for artistic purposes. The resultant image is a feedback of the image itself being screenshoted. Also, it is important that the image is being opened as 'quick look' because it displays the top bar with the date and time of the screenshot, so the feedback is clear. Thank you so much.
//The script I've accomplished by now is:
tell application "Finder" do shell script "qlmanage - p /cm.jpg" set dFolder to "~/Desktop/screencapture/" do shell script ("mkdir -p " & dFolder) set i to 0 repeat 960 times set tTime to do shell script "date +%H%M%S" do shell script ("screencapture " & dFolder & "frame-" & i & ".png") delay 5 set i to i + 1 end repeat end tell
// I still don't know how to make it work related to a specific image, and then related to each new screenshot.