Excel does not open when Applescript is called by crontab

Hello everyone:

I am baffled… I have written an AppleScript that copies information from a website, puts that information into an Excel page, where the data is reorganized for further use with a couple more applications… The Script being run by the AppleScript Editor, or scheduled on iCal will run properly.

I decided to move the scheduling to a crontab, but somehow, when the script is called, Microsoft Excel does not open, leaving the script hanging and not even timing out… hmmm…

I am baffled… Any suggestions?

I have tried a simple applescript that calls the excel page alone, and it does open fine, for some reason, with exactly the same wording, Excel fails to activate when calling it from this script.

thanks!

I have solved the issue…

live and learn…

I am sorry for this post…

It seems that AppleScript editor and the GUI will not care if there is an extra “end” on your script, but osascript does…

Clean your scripts and make sure that you do not have extra “end”'s floating around.
this will save you some headaches later…

HT