I think I worked at what is wrong here.
I was trying to avoid passing a full path to open, and we have a couple of users here and I was trying to create something flexible.
Looks like the launch servcies databases are per-user, (or at least root has a different one), so open couldn't find the application as the LS DB never gets updated for root.
I fixed this by changing the open... line to sudo -u $USER open..., and it looks like its working now
Pete
|