Quicktime Image Sequence help

Hi J, any further progress on this? all the best, Robbie

Hi Lobster - I did work on it some more. I thought I posted again - I have to track down what I did. I hope I didn’t accidentally post to the wrong thread.

j

Okay Robbie, I think I must have clicked “preview” instead of “submit” last time. Sorry about that. As I recall:

I thought of one thing - where did you store the script before attaching it? I seem to recall reading about that being important, but in the past few minutes I haven’t been able to verify that.

However, a few days ago I couldn’t figure out what went wrong, but did notice that you attach actions by right clicking while I use the file menu. I tried doing it your way and noticed something - unlike using the file menu, right clicking allows the choice of folder actions stored outside of the Foldr Actions folder (~/Library/Scripts/Folder Action Scripts or Library/Scripts/Folder Action Scripts.) I tried moving the script to the desktop and then attaching it to a folder and it stopped working properly. As soon as I put it back in Folder Actions, it worked again.

If you didn’t have the script in one of the Folder Actions folders, try putting this into one and see how it goes. (I just did a quick test to be sure it works for me.) Next we can sort out updating the movie.

on adding folder items to thisFolder after receiving droppedFolders
	repeat with aFolder in droppedFolders
		
		tell application "Finder" to set theSequence to (get first file of aFolder as alias)
		
		tell application "QuickTime Player"
			activate
			open image sequence theSequence
			
			set nameSequence to (theSequence as string) & ".mov"
			
			tell movie 1
				with timeout of 500 seconds
					save self contained in nameSequence
				end timeout
				
				close
				
			end tell
		end tell
		
	end repeat
end adding folder items to

J,

Hurray - it works. Thanks. Now, to tweak it to precisely what I need.

Robbie

That’s a relief - I don’t know if you noticed, but I changed

repeat with thisFolder in droppedFolders

to

repeat with aFolder in droppedFolders

because I thought that might also be a problem.

If you want to leave the saved movie in the image folder, I think you’ll need to exclude it from the imageSequence variable.

j