Tell if movie has been played?
Is there a way for applescript to look at folder with jpg and movies. And mark the ones that have never been played? I was thinking of comparing date modified to date last opened.
Want to highlight a helpful answer? Upvote!
Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >
Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >
Is there a way for applescript to look at folder with jpg and movies. And mark the ones that have never been played? I was thinking of comparing date modified to date last opened.
There is no guarantee that 'opening' a movie results in it being played.
There doesn't appear to be any direct way to read a file's access time via AppleScript, but you can use the shell commands to find the last access time of a file:
# ls -ul /path/to/some.mov
which may differ from the last modification date ( ls -l /path/to/some.mov )
But there may be many reasons why a file is accessed which does not involve the movie being played, so it may not be helpful.
Tell if movie has been played?