01.Blogs :
The Mysterious X  
The (quasi) technical blog of Adam Bishop

Control anything on OSX with a webpage

I was messing about with applescript and a bit of PHP, and found that it's possible to use php to call applescript commands.

The zip file contains a sample page for controlling iTunes, and a readme containing the 4 lines in httpd.conf that need to be changed.

For more complex commands (such as tell blocks) the ocascipt has an argument to accept a file, or to take the commands from standard input.

The example is very simplistic, but right now I'm sat on the other side of the room with that page pulled up on my PDA, and is obviously as extendable as you want it to be.

http://uploads.omega.org.uk/Applescript.zip

The developer documentation for applescript can be found here if anyone is interested in further developing the sample.

posted on Tuesday, January 16, 2007 7:22 AM by The Mysterious X


 
03.UPDATE CALENDAR :
<January 2007>
SunMonTueWedThuFriSat
31123456
78910111213
14151617181920
21222324252627
28293031123
45678910

05.MY LINKS :

07.Subscriptions :

Subscriptions


© Copyright 2005 Microsoft Corporation. All Rights Reserved.
Terms of Use | Privacy Statement | Code of Conduct | Hosted by MaximumASP for Microsoft
WHO-BAR