Note that there are some explanatory texts on larger screens.

plurals
  1. POcan't get quicktime to export mov into pngs with apple script
    text
    copied!<p>i was wondering if anyone can tell me how to make this script work. I tried for hours and i can't figure out why it fails.</p> <p>This script tells Quicktime to advance in a quicktime movie/presentation (generated by keynote) and export a image for every last frame of every chapter in this movie.</p> <pre><code>property Main_folder : missing value set Main_folder to choose folder tell application "QuickTime Player 7" if not (exists document 1) then error "No movies are open." stop movies tell front document to set {currMovie, T_name, duration_list, current time} to ¬ {it, text 1 thru -5 of (get name), duration of chapters of (get first track whose kind is "Sprite"), 0} set T_target to my makeFolder(T_name) repeat with i from 1 to (count duration_list) tell currMovie set current time to current time + (item i of duration_list) export to (T_target &amp; T_name &amp; " Chapter " &amp; i) as picture using settings preset "Photo-JPEG" -- or "Uncommpressed", or "PNG" end tell end repeat end tell on makeFolder(n) tell application "Finder" to return (make new folder at Main_folder with properties </code></pre> <p>My problem here is that it saves the images in PICT format instead of PNG. The relevat part of the script is here:</p> <pre><code>export to (T_target &amp; T_name &amp; " Chapter " &amp; i) as picture using settings preset "Photo-JPEG" -- or "Uncommpressed", or "PNG" </code></pre> <p>I tried it with PNG and and Photo-JPEG only but it still only generates images in the PICT format</p> <p>Does anyone know how to do this? I can't find any mistakes in the script ... it should work.</p> <p>Any advice is welcome! Thx in advance.</p> <p>Best regards,</p> <p>zhengtonic</p> <p><em>update</em></p> <p>If anyone is interested i found the reason: </p> <p>Quicktime 7 is not able to grap a still image from a mov and export it as png/jpeg. I found a workaround by converting the videos to mp4 and than extracting certain frames.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload