tell application "QuickTime Player"
--loop thru all your videos
set allvids to every document
repeat with a in allvids
tell a
--wait
do shell script "sleep 4"
repeat
try
play
end try
if playing is true then exit repeat
end repeat
--do whatever you want
present
end tell
end repeat
end tell
Your question was too generic to help you further. I added only the loop handler to my original script, to help you understand how to apply actions in batch.
Note that you’ve to put the
do shell script "sleep 4"
command inside the repeat handler, to check every 4 seconds if a progress was made.
Furthermore, try this:
if modified of document 1 is true then exit repeat
.always inside the repeat handler.
Hope this helps.
set myFolder to (choose folder) as alias -- use the path to the folder that's loading
set firstSize to size of (info for myFolder) --get initial size
delay 10 --wait 3 seconds
set newSize to size of (info for myFolder) --get a newer size, bigger
repeat while newSize ≠firstSize --if they don't equal, loop until they do
set firstSize to newSize --new base size
delay 10 --wait three seconds
set newSize to size of (info for myFolder) --get a newer size
end repeat --once the sizes match, the transfer is complete