on open - error

I get the following error “The variable this_folder is not defined.” with this part of the script.

on open
	tell application "Finder" to set this_folder to the folder of this_folder
       -- do stuff here
end open

Thanks for any help.


Browser: Safari 525.20.1
Operating System: Mac OS X (10.5)


if the variable this_folder is no property or a global, it’s indeed not defined.
Local variables are only visible in the scope in which they are created

Hi - Thanks for the explanation as I was able to suppress the error.


Operating System: Mac OS X (10.5)