helpful renaming of Movie Clippings

I’m looking into how to create a folder action which will rename movie clippings dragged from QuickTime Player 7 - I’m wanting to have the names reflect the frames or times at which the dragged selection is taken from. I’ve been looking through the QuickTime Player 7 applescript dictionary and found some terms which I think are relevant:

selection start (integer) : the start of the movie selection
selection end (integer) : the end of the movie selection
selection duration (integer) : the duration of the movie selection

these, less so:

current time (integer) : the current time (can be set by name as well as number)
time (integer) : the time at which the frame starts
time scale (integer, r/o) : the time scale of the movie

I actually don’t know what I’m doing. I’ll admit that readily :wink: - that’s why I’ve come here!

thanks

Hi and welcome at Macscripter!

what do you mean with video clippings ? anyway, try if this works for you:

on adding folder items to this_f after receiving added_items
	tell application "QuickTime Player" to tell document 1 to set {nm, cu_tm} to {name, current time}
	set nw_nm to (nm & "_" & cu_tm & ".mov") as text
	try
		tell application "Finder" to set name of added_items to nw_nm
	on error
		beep
	end try
 end adding folder items to