Hi all -
I’ve got an applescriptobjc app that basically asks the user some to fill out a form, select a file, and then feeds the file to compressor. After compressing is done, it should pop up a dialog box sending folks to safari, where they upload their movie. This currently isn’t working. I’ve got everything linked up properly (delegates- interface builder), but can’t seem to make this work. Here’s a relevant chunk of the code:
set file1 to (full_quality_file_a & "-_4x3_cmfupload.mov") as string
set file2 to (full_quality_file_a & "-_16x9_cmfupload.mov") as string
repeat
if exists file1 then
tell current application
activate
set the var to "yes"
end tell
end if
if exists file2 then
tell current application
activate
set the var to "yes"
end tell
end if
delay (30) -- delay 30 seconds
end repeat
tell current application
if var = "yes" then
encodeWindow's orderOut_(me)
congratsWindow's makeKeyAndOrderFront_(me)
end if
end tell
basically, having it watch a folder and see when the file name is correct, indicating compressor is finished with the file. When I move the orderOut and makeKeyandOrderFront commands into the repeat, the desired functionality occurs, but the button on the dialog box is non-responsive [I believe because its stuck in the repeat]. Any ideas or thoughts would be greatly appreciated.
FYI, We’re using FCPX primarily; I haven’t been able to do much from the CLI with the new Share Monitor.
Thanks!