Applescript for quicktime audio track labelling and assigning

Hello all!

I’m very new to this scripting business so forgive my ineptness at this.

I work in media and am constantly having to label video files within quicktime to send off to a client. This is very tedious work when you have 50 video files to do with 24 audio tracks each.

Luckily i found a script online which i have slightly modified and added to over the past few months. But I’ve hit a brick wall.

First of all here is the script for labelling and assigning quicktime audio tracks if anyone is interested in using it:

[b]on open myFileList

-- Allows script to be used in either Leopard or Snow Leopard
-- Sets the name of appID "com.apple.quicktime" --> qtPlayer
tell application "Finder"
	set qtPlayer to name of application "QuickTime Player 7"
end tell

-- Makes the target application the active window
tell application "QuickTime Player 7"
	activate
	repeat with myFile in myFileList
		set myMovie to (open myFile)
		
		-- Call on "System Events" for QuickTime Player 7
		tell application id "com.apple.systemevents"
			tell process qtPlayer
				
				-- Shows Movie Properties
				tell menu bar 1
					tell menu bar item "Window"
						tell menu "Window"
							click menu item "Show Movie Properties"
							activate
						end tell
					end tell
				end tell
				
				--
				select row 3 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 4 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 5 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 6 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 7 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 8 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 9 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 10 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 11 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 12 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 13 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 14 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 15 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 16 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 17 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 18 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 19 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 20 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 21 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 22 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 23 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 24 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 25 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 26 of table 1 of scroll area 1 of window 1
				click radio button 3 of tab group 1 of window 1
				
				tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
					click
					click menu item "Mono" of menu 1
				end tell
				--
				select row 3 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				select row 4 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				select row 5 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				select row 6 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				select row 7 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				select row 8 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				select row 9 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				select row 10 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				select row 11 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				select row 12 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				select row 13 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				select row 14 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				select row 15 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				select row 16 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				select row 17 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				select row 18 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				select row 19 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				select row 20 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				select row 21 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				select row 22 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				select row 23 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				select row 24 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				select row 25 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				select row 26 of table 1 of scroll area 1 of window 1
				click radio button 4 of tab group 1 of window 1
				tell pop up button 3 of tab group 1 of window 1
					click
					click menu item "English" of menu 1
				end tell
				--
				
				
				tell application "QuickTime Player 7"
					activate
					
					
					get name of every track of document 1
					{"Video Track", "Sound Track 1", "Sound Track 2"}
					set name of track "Sound Track 1" of document 1 to "TEMPLATE"
					set name of track "Sound Track 2" of document 1 to "TEMPLATE"
					set name of track "Sound Track 3" of document 1 to "TEMPLATE"
					set name of track "Sound Track 4" of document 1 to "TEMPLATE"
					set name of track "Sound Track 5" of document 1 to "TEMPLATE"
					set name of track "Sound Track 6" of document 1 to "TEMPLATE"
					set name of track "Sound Track 7" of document 1 to "TEMPLATE"
					set name of track "Sound Track 8" of document 1 to "TEMPLATE"
					set name of track "Sound Track 9" of document 1 to "TEMPLATE"
					set name of track "Sound Track 10" of document 1 to "TEMPLATE"
					set name of track "Sound Track 11" of document 1 to "TEMPLATE"
					set name of track "Sound Track 12" of document 1 to "TEMPLATE"
					set name of track "Sound Track 13" of document 1 to "TEMPLATE"
					set name of track "Sound Track 14" of document 1 to "TEMPLATE"
					set name of track "Sound Track 15" of document 1 to "TEMPLATE"
					set name of track "Sound Track 16" of document 1 to "TEMPLATE"
					set name of track "Sound Track 17" of document 1 to "TEMPLATE"
					set name of track "Sound Track 18" of document 1 to "TEMPLATE"
					set name of track "Sound Track 19" of document 1 to "TEMPLATE"
					set name of track "Sound Track 20" of document 1 to "TEMPLATE"
					set name of track "Sound Track 21" of document 1 to "TEMPLATE"
					set name of track "Sound Track 22" of document 1 to "TEMPLATE"
					set name of track "Sound Track 23" of document 1 to "TEMPLATE"
					set name of track "Sound Track 24" of document 1 to "TEMPLATE"
					get name of every track of document 1
					
					
				end tell
				
				
				
				-- Check to make QuickTime Player active window before saving
				tell application "QuickTime Player 7"
					activate
				end tell
				
				-- Saves any and all changes then closes all windows
				tell menu bar 1
					tell menu bar item "File"
						tell menu "File"
							click menu item "Close"
							click menu item "Save"
							click menu item "Close"
						end tell
					end tell
				end tell
				
			end tell
		end tell
		close myMovie
	end repeat
	quit
end tell

end open[/b]

Now what i really need from this script at this point is to be able to process multiple video files at once, at the moment i have to drag each video file on top of the script and wait for it to finish and then do the next one. Would anyone be able to help me modify this to be able to select multiple files in which it will repeatedly go through a file list one by one until the end of said list?

Many thanks for your help and i hope this script comes in use for someone else as well.

Cheers!

Hi,

actually the script is designed to handle multiple files. Just select 2 or more files and drag them onto the droplet.

I shrinked the script a bit by using repeat loops. Hope it works, I don’t have such a specific movie file to test it.
QT 7 has a quite huge AppleScript dictionary. I’m wondering if it’s possible to set the Mono and language properties without GUI scripting


property numberOfTracks : 24

on open myFileList
	
	-- Allows script to be used in either Leopard or Snow Leopard
	-- Sets the name of appID "com.apple.quicktime" --> qtPlayer
	tell application "Finder"
		set qtPlayer to name of application "QuickTime Player 7"
	end tell
	
	-- Makes the target application the active window
	activate application "QuickTime Player 7"
	
	repeat with myFile in myFileList
		tell application "QuickTime Player 7" to open myFile
		
		-- Call on "System Events" for QuickTime Player 7
		tell application id "com.apple.systemevents"
			tell process qtPlayer
				
				-- Shows Movie Properties
				tell menu bar 1
					tell menu bar item "Window"
						tell menu "Window"
							click menu item "Show Movie Properties"
							activate
						end tell
					end tell
				end tell
				
				repeat with i from 1 to numberOfTracks
					-- add 2 to the index variable to match the row number
					select row (i + 2) of table 1 of scroll area 1 of window 1
					
					tell tab group 1 of window 1
						click radio button 3
						tell pop up button 1 of row 1 of table 1 of scroll area 1
							click
							click menu item "Mono" of menu 1
						end tell
						
						click radio button 4
						tell pop up button 3
							click
							click menu item "English" of menu 1
						end tell
					end tell
				end repeat
			end tell
		end tell
		
		tell application "QuickTime Player 7"
			repeat with i from 1 to numberOfTracks
				set name of track ("Sound Track " & i) of document 1 to "TEMPLATE"
			end repeat
			close document 1 saving yes
			close every window
		end tell
	end repeat
end open

Sorry i may have not described my issue properly - the script i posted is a template, in actual use it would be modified and look like the following:

on open myFileList

-- Allows script to be used in either Leopard or Snow Leopard
-- Sets the name of appID "com.apple.quicktime" --> qtPlayer
tell application "Finder"
    set qtPlayer to name of application "QuickTime Player 7"
end tell

-- Makes the target application the active window
tell application "QuickTime Player 7"
    activate
    repeat with myFile in myFileList
        set myMovie to (open myFile)
        
        -- Call on "System Events" for QuickTime Player 7
        tell application id "com.apple.systemevents"
            tell process qtPlayer
                
                -- Shows Movie Properties
                tell menu bar 1
                    tell menu bar item "Window"
                        tell menu "Window"
                            click menu item "Show Movie Properties"
                            activate
                        end tell
                    end tell
                end tell
                
                --
                select row 3 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "Left" of menu 1
                end tell
                --
                select row 4 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "Right" of menu 1
                end tell
                --
                select row 5 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "Center" of menu 1
                end tell
                --
                select row 6 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "LFE Screen" of menu 1
                end tell
                --
                select row 7 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "Left Surround" of menu 1
                end tell
                --
                select row 8 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "Right Surround" of menu 1
                end tell
                --
                select row 9 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "Left Total" of menu 1
                end tell
                --
                select row 10 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "Right Total" of menu 1
                end tell
                --
                select row 11 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "Left Total" of menu 1
                end tell
                --
                select row 12 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "Right Total" of menu 1
                end tell
                --
                select row 13 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "Left" of menu 1
                end tell
                --
                select row 14 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "Right" of menu 1
                end tell
                --
                select row 15 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "Center" of menu 1
                end tell
                --
                select row 16 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "LFE Screen" of menu 1
                end tell
                --
                select row 17 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "Left Surround" of menu 1
                end tell
                --
                select row 18 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "Right Surround" of menu 1
                end tell
                --
                select row 19 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "Left Total" of menu 1
                end tell
                --
                select row 20 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "Right Total" of menu 1
                end tell
                --
                select row 21 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "Left Total" of menu 1
                end tell
                --
                select row 22 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "Right Total" of menu 1
                end tell
                --
                select row 23 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "Left Total" of menu 1
                end tell
                --
                select row 24 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "Right Total" of menu 1
                end tell
                --
                select row 25 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "Left Total" of menu 1
                end tell
                --
                select row 26 of table 1 of scroll area 1 of window 1
                click radio button 3 of tab group 1 of window 1
                
                tell pop up button 1 of row 1 of table 1 of scroll area 1 of tab group 1 of window 1
                    click
                    click menu item "Right Total" of menu 1
                end tell
                --
                select row 3 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "Danish" of menu 1
                end tell
                --
                select row 4 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "Danish" of menu 1
                end tell
                --
                select row 5 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "Danish" of menu 1
                end tell
                --
                select row 6 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "Danish" of menu 1
                end tell
                --
                select row 7 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "Danish" of menu 1
                end tell
                --
                select row 8 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "Danish" of menu 1
                end tell
                --
                select row 9 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "Danish" of menu 1
                end tell
                --
                select row 10 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "Danish" of menu 1
                end tell
                --
                select row 11 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "French" of menu 1
                end tell
                --
                select row 12 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "French" of menu 1
                end tell
                --
                select row 13 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "French" of menu 1
                end tell
                --
                select row 14 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "French" of menu 1
                end tell
                --
                select row 15 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "French" of menu 1
                end tell
                --
                select row 16 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "French" of menu 1
                end tell
                --
                select row 17 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "French" of menu 1
                end tell
                --
                select row 18 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "French" of menu 1
                end tell
                --
                select row 19 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "Swedish" of menu 1
                end tell
                --
                select row 20 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "Swedish" of menu 1
                end tell
                --
                select row 21 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "Swedish" of menu 1
                end tell
                --
                select row 22 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "Swedish" of menu 1
                end tell
                --
                select row 23 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "Swedish" of menu 1
                end tell
                --
                select row 24 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "Swedish" of menu 1
                end tell
                --
                select row 25 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "Swedish" of menu 1
                end tell
                --
                select row 26 of table 1 of scroll area 1 of window 1
                click radio button 4 of tab group 1 of window 1
                tell pop up button 3 of tab group 1 of window 1
                    click
                    click menu item "Swedish" of menu 1
                end tell
                --
                
                
                tell application "QuickTime Player 7"
                    activate
                    
                    
                    get name of every track of document 1
                    {"Video Track", "Sound Track 1", "Sound Track 2"}
                    set name of track "Sound Track 1" of document 1 to "Danish 5.1 Left"
                    set name of track "Sound Track 2" of document 1 to "Danish 5.1 Right"
                    set name of track "Sound Track 3" of document 1 to "Danish 5.1 Center"
                    set name of track "Sound Track 4" of document 1 to "Danish 5.1 LFE"
                    set name of track "Sound Track 5" of document 1 to "Danish 5.1 Left Surround"
                    set name of track "Sound Track 6" of document 1 to "Danish 5.1 Right Surround"
                    set name of track "Sound Track 7" of document 1 to "Danish Stereo Left"
                    set name of track "Sound Track 8" of document 1 to "Danish Stereo Right"
                    set name of track "Sound Track 9" of document 1 to "French 5.1 Left"
                    set name of track "Sound Track 10" of document 1 to "French 5.1 Right"
                    set name of track "Sound Track 11" of document 1 to "French 5.1 Center"
                    set name of track "Sound Track 12" of document 1 to "French 5.1 LFE"
                    set name of track "Sound Track 13" of document 1 to "French 5.1 Left Surround"
                    set name of track "Sound Track 14" of document 1 to "French 5.1 Right Surround"
                    set name of track "Sound Track 15" of document 1 to "French Stereo Left"
                    set name of track "Sound Track 16" of document 1 to "French Stereo Right"
                    set name of track "Sound Track 17" of document 1 to "ETC"
                    set name of track "Sound Track 18" of document 1 to "ETC"
                    set name of track "Sound Track 19" of document 1 to "ETC"
                    set name of track "Sound Track 20" of document 1 to "ETC"
                    set name of track "Sound Track 21" of document 1 to "ETC"
                    set name of track "Sound Track 22" of document 1 to "ETC"
                    set name of track "Sound Track 23" of document 1 to "ETC"
                    set name of track "Sound Track 24" of document 1 to "ETC"
                    get name of every track of document 1
                    
                    
                end tell
                
                
                
                -- Check to make QuickTime Player active window before saving
                tell application "QuickTime Player 7"
                    activate
                end tell
                
                -- Saves any and all changes then closes all windows
                tell menu bar 1
                    tell menu bar item "File"
                        tell menu "File"
                            click menu item "Close"
                            click menu item "Save"
                            click menu item "Close"
                        end tell
                    end tell
                end tell
                
            end tell
        end tell
        close myMovie
    end repeat
    quit
end tell

end open

Unfortunately this script doesnt work with multiple files, it only acknowledges the first file dropped onto it. I need it to acknowledge the first and run the script and then move onto the others once processed.

Thankyou so much for trying to shorten and simplify this script and its awesome that you have done that, but unfortunately every single channel is always assigned and named something different with multiple languages, theyre never always the same. So i wouldnt be able to use your shortened version :frowning:

Thankyou for your help however! its much appreciated!

the repeat loop


repeat with myFile in myFileList

is supposed to handle multiple files.

GUI scripting could be very time consuming and while the script is running any user action is forbidden which probably will break the script.
In the script all rows are selected twice which makes the script still slower. In my version I merged both actions so each row is only selected once.
Maybe there is an issue with the save and close GUI scripting part of QT7. It’s better to save and close using AppleScript QT terminology