I need to run an applescript that uses Finder; however, I have to run it as a user connected via ssh. So there's no UI. And the script fails with -10810 error when there's no UI.
Is there any alternative for X11's Xvfb that I could use for Mac server 10.6 to fake a display and make the script work?
Cheers!
Tomas
Edit: To explain the problem more precisely - the script works if there's a user logged in with UI (e.g., when the user that uses ssh to run the script is also logged in via VNC). However, when I only log in using ssh, the error appears. Which leads me to believe that the script needs UI to be able to use Finder.
So I guess running X11 and Xvfb on the server won't really help, because it won't allow me to run the script anyway (I need to start Finder).