AnalogX script defender only activates when you click the file, so it doesn’t matter how you receive it or where it is located, script defender will act the same.

Script Defender works by changing the windows file associations, so when you click on file types protected by SD, first script defender is executed. When you allow it to execute the file, it will then be opened by the program usually associated with it (before it was changed by SD).