osx - Video Stress via Apple script -
i've been working on video stress script based on terminal quicktime, i'm having specific issue 1 part of playing multiple videos quicktime love opinions on cleaning up/running better
right script can take 12 videos playing @ once, organizes them in single desktop, i'd love loop commands open them full screen (presentation mode) , bring out. process stresses graphics processer , ram , processor lot, why want it. code both seems inefficient , doesn't work. i've thought using window id's matrix of id's use control them, can't quite figure out.
any how here simplified version of script fullscreen/unfullscreen mode. brings of videos out of presentation not of them, , not consistant amount (some times it's 1, times 2 or 3) i'd appreciate bit of help/advice
tell application "quicktime player" set open_windows (every window visible true) set n count of open_windows repeat n times set presenting of document 1 true delay 5 tell application "finder" activate end tell delay 1 end repeat --repeat n times try set presenting of document 2 false delay 1 tell application "finder" activate end tell delay 1 --end repeat set presenting of document 3 false delay 1 tell application "finder" activate end tell delay 1 end try end tell
this sometimes skipped windows me too:
tell application "quicktime player" repeat d in documents tell d set presenting true delay 3 end repeat end tell
you might loop through windows multiple times:
tell application "quicktime player" repeat while presenting of documents contains false repeat d in (documents presenting false) tell d set presenting true delay 3 end repeat end repeat end tell
you refer documents this:
tell application "quicktime player" repeat w in windows set id of w tell document of w set presenting true end repeat window 1 id end tell
Comments
Post a Comment