I have written a javascript file which calls a webscript and have configured a scheduled action to run that script.
I have enable the 'remote' object for alfresco (its enabled only for share OOTB)and my script runs fine when run from the javascript console in Share but fails when run through the schedule action complaining that 'remote' is not defined.
Is there any specific reason for invoking webscript from js and then calling js from schedule action? If not then you can directly make a call to the webscript from your scheduled action implementation.