osascript - no user interaction allowed

Hi There,

I have a strange problem with an osascript command on an OSX Server 10.4.8.
Im getting an error : no user interaction allowed.
I can run it on my own Mac - Leopard 10.5.5 without problems.

Here’s the osascript part:

echo | osascript <<EOF
tell application “/Odystar/Ody_software/Odystar 4.0/Administrator Software/Inspector/Inspector.app”
quit
tell application “/Odystar/Ody_software/Odystar 4.0/Server Software/Watchdog.app”
quit
end tell
end tell
EOF

Anyone any ideas?

Hi,

does the quit command work at all with a POSIX path parameter ?
Wouldn’t it be easier to use the shell killall command

Yes it works on my Mac…

What’s this killall about - how do I use it in a shellscript to quit a particular application?

One more thing:
I also need to start the application after - this case rsync - has finished.

It’s just

killall [name of process]

the name is the name of the process e.g. as displayed in System Events

Normally AppleScript commands work only with HFS paths.
That could be the reason, that the script doesn’t work in Tiger.
Another problem could be the nested tell block
This is sufficient


quit application "/Odystar/Ody_software/Odystar 4.0/Administrator Software/Inspector/Inspector.app"
quit application "/Odystar/Ody_software/Odystar 4.0/Server Software/Watchdog.app"

or even


quit application "Inspector"
quit application "Watchdog"