I try to process command line arguments in a AppleScript. The script works if I run it using `osascript TestArgs.scpt a.txt b.txt`. But if I save the script as an .app and run it from the command line, it does not show any arguments: `open -a TestArgs --args a.txt b.txt` does not work. I also tried several variations of the script with no success.

```
on run argv
    set argc to 0
    try
        set argc to (count of argv)
    end try
    tell application "Finder" to display dialog ("Argument Count: " & argc as string)
end run

```

It seems the problem is realted to OSX 10.8, as the same script works as expected on 10.7

Where is my mistake?

Thanks and Regards.