Hello,
I am trying to deploy a script that will ask users if they've filled out and submitted their time sheet. If they click Yes, the message goes away. If they click No, it launches Safari and brings it to the front.
I can get it to run on my machine just fine, but when I try to deploy it via Casper Remote or a policy, I get an error saying that "<" is an invalid character. In the very short script, I've quadruple checked, and can't find a < character at all. Can anyone offer any help as to what's going on?
For reference, here's the script (website it goes to has been changed for privacy):
display dialog "Have you completed your timesheet?" buttons {"Yes", "No"} default button 2
if the button returned of the result is "No" then
tell application "Safari" to open location "http://google.com/"
tell application "Safari"
activate
end tell
else
null
end if
If anyone has any tips as to what I can do to make this work, I'd greatly appreciate it!