The issue arises when opening a file with the variables passed through Hazel

I want to manage conditions through Hazel. When the conditions are met, I intend to pass the file path to Keyboard Maestro, which will then read the file. However, I'm facing difficulties in achieving this. The variables are successfully passed, but the file cannot be read. Please assist me.

Below are the configurations for Hazel and Keyboard Maestro.

set theFile to POSIX path of theFile

tell application "Keyboard Maestro Engine"
	setvariable "HazelMatch_FilePath" to theFile & linefeed
	
	do script "8B710FC1-55AE-4577-A336-E4938410C20B"
end tell


Hazel_txt.kmmacros (2.0 KB)

I'm so stupid.
linefeed.