Re: AppleScript-Users Digest, Vol 14, Issue 404
Re: AppleScript-Users Digest, Vol 14, Issue 404
- Subject: Re: AppleScript-Users Digest, Vol 14, Issue 404
- From: Jim Weisbin <email@hidden>
- Date: Wed, 16 Aug 2017 15:54:29 -0400
>
> On Aug 16, 2017, at 3:00 PM, Shane Stanley <email@hidden
> <mailto:email@hidden>> wrote
> On 14 Aug 2017, at 11:40 pm, Jim Weisbin <email@hidden
> <mailto:email@hidden>> wrote:
>>
>> the one thing I can’t do is to capture the playhead position
>
> How is that defined? Time elapsed, frames?
It’s not exactly either. It’s “current time” (per the Quicktime 7 dictionary)
and is related to the “time scale" of the movie.
tell application id "com.apple.quicktimeplayer"
set totalduration to duration of the_video_track
set NumberOfFrames to count frames of the_video_track
set timeScaleOfMovie to the time scale
set my_duration to (totalduration / timeScaleOfMovie)
set FPS to NumberOfFrames / my_duration
set the current_time to (current time of document 1)
select document 1 at 0 to the current_time
cut document 1
end tell
But if I could capture it either in frames or 00:00:00;00 format, I'm sure I
could work with it.
Thanks.
Jim Weisbin | C.T.O. | Human | Post Human | 27 West 20th Street | Suite 801 |
New York, NY | 10011 | (212) 352-0211 | (917) 375-2272 | 2046 Broadway |
Santa Monica, CA | 90404 | (310) 264-0211 telephone | www.humanworldwide.com
<http://www.humanworldwide.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden