AppleScript problem
I use to interface FileMaker Pro (Claris apple) with BTV. and was very happy with that software but BTV does not existe anymore.
my script to record a movie with the name of the database was
tell application "FileMaker Pro Advanced"
set NomDuFilm to cell "nom" of current record of layout "chirurgie conflit"
set counter to cell "compteur film" of current record of layout "chirurgie conflit"
end tell
set nomdufichier to NomDuFilm & counter
tell application "BTV Pro"
launch
start recording as nomdufichier with overwrite
end tell
now with Swift it did change a little bit bur I cannot record with the right name
I know that this is not anymore Start recording but start capture. so this is my script now that does work but just impossible to give not the right name like before
tell application "FileMaker Pro"
set NomDuFilm to cell "nom" of current record of layout "chirurgie conflit"
set counter to cell "compteur film" of current record of layout "chirurgie conflit"
end tell
set nomdufichier to NomDuFilm & counter
tell application "SwiftCapture"
launch
start capture
end tell
I would like to add: Start capture to file nomdufichier
so, it would give the right name but it does not work.
do you have an idea of the right syntax
bests
Comments
-
I found finally after a difficult battle
tell application "FileMaker Pro"
set NomDuFilm to cell "nom" of current record of layout "chirurgie conflit"
set counter to cell "compteur film" of current record of layout "chirurgie conflit"
end tell
set nomdufichier to NomDuFilm & counter & ".m4v"
tell application "SwiftCapture"
launch
start capture to file "Users/fredericlaude/Movies/" & nomdufichier
end tell
the correct syntax in coding is often a nightmare....