Re: PHP and Applescript
Re: PHP and Applescript
- Subject: Re: PHP and Applescript
- From: Axel Luttgens <email@hidden>
- Date: Sun, 10 Feb 2008 02:14:11 +0100
Le 9 févr. 08 à 19:27, Brian Johnson a écrit :
[...]
Having said all that; since I don't do this kind of thing from PHP,
I built a test page and script to make sure the above was right ....
and it doesn't work (quite silently).
Axel, did you test yours?
Yes, I swear it! ;-)
Anyway, let's try it again.
Script "~/Sites/test.php":
<?php
echo exec('/usr/bin/osascript test.scpt');
?>
and AppleScript "~/Sites/test.scpt":
"Hi There"
Going to "http://127.0.0.1/~luttgens/test.php" with Safari, I get a
page displaying:
Hi There
as I already did.
Now, reading your comments, I had a doubt.
The above tests have been done on Leopard, and Apple often changes
things in the background from one OS version to another, and even at
the occasion of minor upgrades.
So, I've just tried to do the same on Tiger, and... it failed (the
cause being clearly stated in error_log: Window Server communications
from outside of session allowed for root and console user only).
Looks like some unneeded restrictions on osascript have been removed
with Leopard...
Good news for Leopard users, thus.
But perhaps bad news for Grace...
Thanks for having made me remind to always check such things,
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden