Redirect to variable

Is there a way to redirect repairPermissions output to variable? I dont want to redirect it to text file.

do shell script "sudo diskutil repairPermissions /> " & testvariable with administrator privileges

yes, it is

set testvariable to (do shell script "diskutil repairPermissions /" with administrator privileges)

Did you not read the thread you started last time about sudo and administrator privileges?

http://bbs.applescript.net/viewtopic.php?id=19881

Also, why are you scripting permissions repair? Please tell us.