on run argv tell application "QuickTime Player" stop document 1 tell document 1 to save in item 1 of argv close every document saving no quit end tell end run