Works fine but I hoping there's a better way to end it's process than just telling
SS to quit as that very often leaves a few of the image files missing.
I see that when I run the script from the Script Editor app and exit it by
hitting "Stop" it always preserves the last images that were written.
Any ideas on stopping the script before I quit SS greatly appreciated.
Thanks,
Carl
- Code: Select all
tell application "SecuritySpy"
launch
end tell
delay 6
repeat
tell application "SecuritySpy"
capture image camera number 0 as "/Users/TV/Sites/ss/1.jpg" with overwrite
delay 0.3
capture image camera number 1 as "/Users/TV/Sites/ss/2.jpg" with overwrite
delay 0.3
capture image camera number 2 as "/Users/TV/Sites/ss/3.jpg" with overwrite
delay 0.3
capture image camera number 3 as "/Users/TV/Sites/ss/4.jpg" with overwrite
delay 0.3
end tell
delay 1
end repeat