I’m looking to upload video files automatically after they are encoding in an encoding program called Episode Pro…I can set up a batch encode and let it rip.
Unfortunately I can only get the upload to FTP to work, I need the applescript to wait for the file to finish encoding before it uploads. Right now I can only get it to upload immediately so it will upload 0kb files.
In mac osx partly copy files the filetype in difference. You can loop checking the filetype. Don’t know about your encoding software may do the same.
If not do a loop script thats check if the file size has change after a set time if not continue…upload to ftp. If the file size is not changing then it should be ready for upload
repeat
tell application “Finder”
set TheFile to file “MacintoshHD:Afolder:AFile.txt”
set SizeFirst to size of TheFile
delay 20 – 20 seconds
set SizeSecound to size of TheFile
if SizeFirst is equal to SizeSecound then exit repeat
end tell
end repeat
display dialog “Ready to copy”