set to command

Hi,

I am a newbie and now I want to know how I can put the output in a variable?

tell application "Finder" to return (count (files of (entire contents of (choose folder))))

Thanks!

Greetings…

This should work.

tell application "Finder" to set file_count to count files of entire contents of (choose folder)

– Rob

Oh, thanks - It works!!!