Quicktime Player Applescript Questine
- Started
- Last post
- 4 Responses
- GeorgesII
Hello, I've been trying to automate a script for quicktime player that does this
1. start quicktime
2. initiate recording
3. record for 5 sec
4. stop recordingbut no matter what I try, I can't get it to save with a new name everytime
how can I get it to save sequentially,
e.g: movie001.mov -- movie002.move -- movie003 -- etchere's my code, any help would be cool
-------------------------
set filePath to (path to desktop as text) & "movie.mov"
tell application "QuickTime Player"
activate
set newMovieRecording to new movie recording
set windowID to id of first window whose name = "Movie Recording"tell newMovieRecording
start
delay 5 --(seconds)
stop
end tellset newMovieRecordingDoc to first document whose name = (get name of first window whose id = windowID)
tell newMovieRecordingDoc to export in filePath using settings preset "iPad"
--tell newMovieRecordingDoc to export in filePath using settings preset "25 fps"
end tell
- uan0
never liked Applescript, but try the documentation:
https://developer.apple.com/libr…there is an increment part defined there inside:
property currentCount : 0
increment()on increment()
set currentCount to currentCount + 1
display dialog "Count is now " & currentCount & "."
end increment- I just tried, but I have no idea where to insert these lines :(GeorgesII
- Weyland0
Why not JSTalk? everybody can do JS right?
- GeorgesII0
the thing is I'm using it to run a software that communicates with my arduino so it needs to be applescript :(
1: press a button,
2: automatically record video
- GeorgesII0
let me bump this thread maybe someone can help me