How to Tell if CFSCHEDULE is Calling Your Page
For one reason or another you may need to determine logically if a page you are coding is being called by CFSCHEDULE. The way I’ve done this in the past is by examining the CGI scope for the http_user_agent. I’m not sure about older or newer versions of ColdFusion, but with CFMX 7, ColdFusion passes “CFSCHEDULE” as the value. So in your code you could do something like: