Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Apple Script for Capture data from Quicktime File

Hello Guys, i am looking for Apple scrpt that works and acomplish this steps:


Grab the quicktime file perperties (QT inspector data such as FPS, DATA RATE, FILE SIZE and SCREEN SIZE etc )


does anyone have any idea how to acomplish, this is for Filemaker Database , so after we grab the values from Apple Scrip it should be automatically transfer to FileMaker also.


So my idea to Call to App Script with inside the FileMaker.



any help appricieated

Posted on Jul 12, 2012 1:30 AM

Reply
Question marked as Best reply

Posted on Jul 12, 2012 11:26 AM

The following two example scripts get properties for the frontmost already open movie in QuickTime Player X (the default one in Mac OS X 10.6 and later), and a second version for QuickTime Player 7 (an optional install for 10.6 an later). As you can see they offer different results.


It should be fairly straightforward for you to take these scripts and add extra lines to transfer to values in to FileMaker.


Script 1 - for QuickTime Player X

tell application "QuickTime Player"
          set mydocument to document 1 -- gets frontmost open movie
          set myproperties to properties of mydocument -- gets properties of movie as list
          tell mydocument -- each of the following gets an individual property
                    set mydatasize to data size
                    set myaudiovolume to audio volume
                    set mymodified to modified
                    set mycurrentaudiocompression to current audio compression
                    set myname to name
                    set mycurrentmicrophone to current microphone
                    set myoutputmuted to muted
                    set myduration to duration
                    set mycurrentmoviecompression to current movie compression
                    set mycurrentscreencompression to current screen compression
                    set mydatarate to data rate
                    set mycurrentcamera to current camera
                    set mypresenting to presenting
                    set myplaying to playing
                    set myclass to class
                    set myfile to file
                    set mynaturaldimensions to natural dimensions
                    set mylooping to looping
                    set mytime to current time
                    set myrate to rate
          end tell
end tell



Script 2 - for QuickTime Player 7

tell application "QuickTime Player 7"
          set mydocument to document 1 -- gets frontmost open movie
          set myproperties to properties of mydocument -- gets properties of movie as list
          tell mydocument -- each of the following gets an individual property
                    set myvideobrightnessadjustment to video brightness adjustment
                    set myname to name
                    set myplayallframes to play all frames
                    set mycurrentnode to current node
                    set mymaxtimeloaded to max time loaded
                    set myresizable to resizeable
                    set mytime to time
                    set myshowdetailedmovieinfowindow to show detailed movie info window
                    set mynaturaldimensions to natural dimensions
                    set mycolortable to color table
                    set mydefaultnode to default node
                    set myshowsoundcontrols to show sound controls
                    set myshowvideocontrols to show video controls
                    set myshowmovieinfowindow to show movie info window
                    set myclass to class
                    set myshowhotspots to show hot spots
                    set mypreferredaudiobalancetrack to preferred audio balance track
                    set myfaststart to fast start
                    set myposterframetime to poster frame time
                    set myoutputmuted to muted
                    set myhref to href
                    set mypanrange to pan range
                    set myselectionduration to selection duration
                    set myvideocontrastadjustment to video contrast adjustment
                    set mycurrentchapter to current chapter
                    set mysoundbalance to sound balance
  -- set myaudiovolume to audio volume
  -- for some reason the above did not work for me
                    set myautoquitwhendone to auto quit when done
                    set mysavable to savable
                    set mypanangle to pan angle
                    set mytimescale to time scale
                    set mypresentationmode to presentation mode
                    set mybassgain to bass gain
                    set mytiltrange to tilt range
                    set myscale to scale
                    set mytreblegain to treble gain
                    set mystreamingstatusmessage to streaming status message
                    set mypreferredaudiogaintrack to preferred audio gain track
                    set myplaying to playing
                    set myautoclosewhendone to auto close when done
                    set myaperture to aperture
                    set myautoplay to auto play
                    set myvideotintadjustment to video tint adjustment
                    set mycontrollertype to controller type
                    set mydimensions to dimensions
                    set myduration to duration
                    set mypantiltspeed to pan tilt speed
                    set mydatasize to data size
                    set myfieldofview to field of view
                    set myplayselectiononly to play selection only
                    set mylivestream to live stream
                    set mylooping to looping
                    set mycurrentchaptertrack to current chapter track
                    set myautopresent to auto present
                    set mypreferredrate to preferred rate
                    set myvideocoloradjustment to video color adjustment
                    set mypath to path
                    set mystoredstream to stored stream
                    set myindex to index
                    set mymodified to modified
                    set mysaveable to saveable
                    set myselectionstart to selection start
                    set mylocalplayback to local playback
                    set mydone to done
                    set mypalindrome to palindrome
                    set mycurrentmatrix to current matrix
                    set myrate to rate
                    set mytiltangle to tilt angle
                    set mylanguage to language
                    set mypreview to preview
                    set mystreamingstatuscode to streaming status code
                    set mypresentationbackgroundcolor to presentation background color
                    set myselection to selection end
                    set myquitwhendone to quit when done
                    set myclosewhendone to close when done
                    set mydatarate to data rate
                    set myoriginalfile to original file
                    set mypluginsettings to plugin settings
                    set mydisplaystate to display state
                    set myfieldofviewrange to field of view range
                    set myzoomrate to zoom rate
                    set myloadstate to load state
          end tell
end tell
1 reply
Question marked as Best reply

Jul 12, 2012 11:26 AM in response to power mac

The following two example scripts get properties for the frontmost already open movie in QuickTime Player X (the default one in Mac OS X 10.6 and later), and a second version for QuickTime Player 7 (an optional install for 10.6 an later). As you can see they offer different results.


It should be fairly straightforward for you to take these scripts and add extra lines to transfer to values in to FileMaker.


Script 1 - for QuickTime Player X

tell application "QuickTime Player"
          set mydocument to document 1 -- gets frontmost open movie
          set myproperties to properties of mydocument -- gets properties of movie as list
          tell mydocument -- each of the following gets an individual property
                    set mydatasize to data size
                    set myaudiovolume to audio volume
                    set mymodified to modified
                    set mycurrentaudiocompression to current audio compression
                    set myname to name
                    set mycurrentmicrophone to current microphone
                    set myoutputmuted to muted
                    set myduration to duration
                    set mycurrentmoviecompression to current movie compression
                    set mycurrentscreencompression to current screen compression
                    set mydatarate to data rate
                    set mycurrentcamera to current camera
                    set mypresenting to presenting
                    set myplaying to playing
                    set myclass to class
                    set myfile to file
                    set mynaturaldimensions to natural dimensions
                    set mylooping to looping
                    set mytime to current time
                    set myrate to rate
          end tell
end tell



Script 2 - for QuickTime Player 7

tell application "QuickTime Player 7"
          set mydocument to document 1 -- gets frontmost open movie
          set myproperties to properties of mydocument -- gets properties of movie as list
          tell mydocument -- each of the following gets an individual property
                    set myvideobrightnessadjustment to video brightness adjustment
                    set myname to name
                    set myplayallframes to play all frames
                    set mycurrentnode to current node
                    set mymaxtimeloaded to max time loaded
                    set myresizable to resizeable
                    set mytime to time
                    set myshowdetailedmovieinfowindow to show detailed movie info window
                    set mynaturaldimensions to natural dimensions
                    set mycolortable to color table
                    set mydefaultnode to default node
                    set myshowsoundcontrols to show sound controls
                    set myshowvideocontrols to show video controls
                    set myshowmovieinfowindow to show movie info window
                    set myclass to class
                    set myshowhotspots to show hot spots
                    set mypreferredaudiobalancetrack to preferred audio balance track
                    set myfaststart to fast start
                    set myposterframetime to poster frame time
                    set myoutputmuted to muted
                    set myhref to href
                    set mypanrange to pan range
                    set myselectionduration to selection duration
                    set myvideocontrastadjustment to video contrast adjustment
                    set mycurrentchapter to current chapter
                    set mysoundbalance to sound balance
  -- set myaudiovolume to audio volume
  -- for some reason the above did not work for me
                    set myautoquitwhendone to auto quit when done
                    set mysavable to savable
                    set mypanangle to pan angle
                    set mytimescale to time scale
                    set mypresentationmode to presentation mode
                    set mybassgain to bass gain
                    set mytiltrange to tilt range
                    set myscale to scale
                    set mytreblegain to treble gain
                    set mystreamingstatusmessage to streaming status message
                    set mypreferredaudiogaintrack to preferred audio gain track
                    set myplaying to playing
                    set myautoclosewhendone to auto close when done
                    set myaperture to aperture
                    set myautoplay to auto play
                    set myvideotintadjustment to video tint adjustment
                    set mycontrollertype to controller type
                    set mydimensions to dimensions
                    set myduration to duration
                    set mypantiltspeed to pan tilt speed
                    set mydatasize to data size
                    set myfieldofview to field of view
                    set myplayselectiononly to play selection only
                    set mylivestream to live stream
                    set mylooping to looping
                    set mycurrentchaptertrack to current chapter track
                    set myautopresent to auto present
                    set mypreferredrate to preferred rate
                    set myvideocoloradjustment to video color adjustment
                    set mypath to path
                    set mystoredstream to stored stream
                    set myindex to index
                    set mymodified to modified
                    set mysaveable to saveable
                    set myselectionstart to selection start
                    set mylocalplayback to local playback
                    set mydone to done
                    set mypalindrome to palindrome
                    set mycurrentmatrix to current matrix
                    set myrate to rate
                    set mytiltangle to tilt angle
                    set mylanguage to language
                    set mypreview to preview
                    set mystreamingstatuscode to streaming status code
                    set mypresentationbackgroundcolor to presentation background color
                    set myselection to selection end
                    set myquitwhendone to quit when done
                    set myclosewhendone to close when done
                    set mydatarate to data rate
                    set myoriginalfile to original file
                    set mypluginsettings to plugin settings
                    set mydisplaystate to display state
                    set myfieldofviewrange to field of view range
                    set myzoomrate to zoom rate
                    set myloadstate to load state
          end tell
end tell

Apple Script for Capture data from Quicktime File

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.