• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: PHP and Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: PHP and Applescript
      • From: Brian Johnson <email@hidden>
References: 
 >a date is not a date? Or: Why I sometimes hate AppleScript... (From: Skeeve <email@hidden>)
 >PHP and Applescript (From: Grace Finn <email@hidden>)
 >Re: PHP and Applescript (From: Brian Johnson <email@hidden>)

  • Prev by Date: Re: A date IS a date
  • Next by Date: Re: PHP and Applescript
  • Previous by thread: Re: PHP and Applescript
  • Next by thread: Re: PHP and Applescript
  • Index(es):
    • Date
    • Thread