Hello JAMFers,
So I am curious if anyone has any experience with running commands from a policy. Basically, my employers have requested I have a video download locally to all managed clients, and have them auto-play the video on a certain day of the week until the end of February. Making the policy to get the video on everyones machine was easy enough, but I am having inconsistent results with the policy I created to run the video. The command I am using is:
osascript -e 'tell application "QuickTime Player" to open "Macintosh HD:System:TAX_Center_2013.mp4"' -e 'tell application "QuickTime Player" to play document 1'
The weird part is if I run this command manually from terminal, it plays the video every time without fail, but when the JSS tries to run the command, I am getting an error I am unfamiliar with.
Running command osascript -e 'tell application "QuickTime Player" to open "Macintosh HD:System:TAX_Center_2013.mp4"' -e 'tell application "QuickTime Player" to play document 1'...
Result of command:
39:85: execution error: An error of type -10810 has occurred. (-10810)
I guess I just dont understand why the command works when I run it from terminal and not when the JSS tries to run it. Does anyone have any insight or tips for me? I am guessing it's something easy I just don't know about -_-
thanks in advance