megha,

Is this thread solved? or did you mark it by mistake?

Since this is in the Mac forum, I'm guessing that you want to convert that code to run on a Mac?

I find it easiest to work with folders in AppleScript via the MacScript command.