Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3353038
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:06:10+00:00 2026-05-18T02:06:10+00:00

i was wondering if anyone can tell me how to make this script work.

  • 0

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.

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.

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 & T_name & " Chapter " & 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 

My problem here is that it saves the images in PICT format instead of PNG.
The relevat part of the script is here:

export to (T_target & T_name & " Chapter " & i) as picture using settings preset "Photo-JPEG" -- or "Uncommpressed", or "PNG"

I tried it with PNG and and Photo-JPEG only but it still only generates images in the PICT format

Does anyone know how to do this? I can’t find any mistakes in the script … it should work.

Any advice is welcome! Thx in advance.

Best regards,

zhengtonic

update

If anyone is interested i found the reason:

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T02:06:11+00:00Added an answer on May 18, 2026 at 2:06 am

    There’s an easier way than re-encoding the movie to mp4. In quicktime you can export an image sequence from a movie. The images of an image sequence can be png images. As such you can applescript this. Here’s the basic outline of what you’d need to do. It might seem complicated but it’s really pretty simple.

    First, Create a settings file for the export as image sequence. You can do that by starting an export and setting up the settings for that. Then run this applescript to save the settings in a file…

    set exportFileName to "ImageSequenceExportSettings.qtSettings"
    set exportFilePath to (path to desktop as text) & exportFileName
    
    tell application "QuickTime Player 7"
        tell first document
            save export settings for image sequence to file exportFilePath
        end tell
    end tell
    

    Second, your applescript takes a time where you want the image, then you basically trim the movie so that it contains only the frame for that time, then you use the settings file to export that frame as your image, something like this… NOTE: I didn’t test the following script

    set timeOfImage to 60 -- in seconds
    set settingsFile to (path to desktop as text) & "ImageSequenceExportSettings.qtSettings"
    
    tell application "QuickTime Player 7"
        tell document 1
            if (can export as image sequence) then
                -- trim the movie to one frame
                set ts to time scale
                set theFrame to timeOfImage * ts
                select at theFrame to (theFrame + 1)
                trim
    
                -- save the image
                set theName to text 1 thru -5 of (get name)
                set outPath to (path to desktop as text) & theName & ".png"
                export to outPath as image sequence using settings settingsFile
    
                -- close the movie
                close saving no
            else
                error "The front movie cannot be exported to an image sequence!"
            end if
        end tell
    end tell
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Came across this error today. Wondering if anyone can tell me what it means:
I wonder if anyone can work this HTML, CSS, Javascript puzzle out? I'm using
I'm new to Oracle and I'm wondering if anyone can tell me what is
Wondering if anyone can help me with this annoying but trivial (in terms of
I'm wondering if anyone can help me out with some Canvas. I'm pretty new
Can anyone tell me why a .jpg would not fade in or fade out
Im just wondering if anyone can tell me how does windows deal with copying
I am wondering if anyone can tell me where I am going wrong. I
Just wondering can anyone tell me how to access the file field variable in
UPDATE: For anyone else wondering about this, check out the comment at http://www.php.net/manual/en/function.imagecreatefromstring.php#31178 I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.