I need to create a web-service which invokes applescript which in turn starts photoshop, does some processing on an image, saves the images to disk and returns the image.
Now, I have never done server side programming before and so I am a bit confused about how I should do this. I know there’s something called CGI which will allow me to write the service in C (also Objective-C) and I can simply execute the c executable. But I want to know if this is my only options here or there are better options?
I will also need to send a base64 encoded string representation of an image to this web-service (two of them actually).
Thanks for your help.
As Amanda said you can use a lot of CGI languages like Python or Ruby to do this. Look at Appscript. I used to have several scripts run this way although I got rid of them. It’s really quite easy. I have tons of appscript Python examples at my blog if you need some examples. If you aren’t sure how to run CGI scripts with Python check out this tutorial. I used to have a short (3 page) Python CGI script that ran a full blog with comments before I finally switched to WordPress.