I'm relatively new to AppleScript. I'm trying to convert a QuickTime duration to a mm:ss time format that rounds to the nearest second. Currently, it comes up as minutes and decimal places that I want to convert to seconds.

I much appreciate any suggestions.

Here's what I have, so far…

```
set these_items to choose file with prompt "Select source file(s)" with multiple selections allowed
repeat with oneItem in these_items
    tell application "System Events"
        try
            set q to QuickTime file (oneItem as text)
            set MovieDuration to ((duration of contents of q) / (time scale of contents of q)) / 60
            display dialog "Movie duration of " & name of q & " = " & MovieDuration
        end try
    end tell
end repeat

```