Verify Preferences

Hello MacScripters,

I want to verify the Preferences in AppleScript,
but there is always an error with the whole shell output.

My AppleScript:

do shell script "plutil -lint ~/Library/Preferences/com.* 2> ~/Desktop/PreferencesReport.txt"

Could you please help me out ?
Thank you very very much !!

Try this:

try
	do shell script "plutil -lint ~/Library/Preferences/*.plist > ~/Desktop/PreferencesReport.txt"
end try

Jon

Thank you very much john8.
It works.