Objective-C的/ CGI我唯一的选择? [英] Objective-C/CGI my only option?
问题描述
我需要创建一个Web服务,它调用的AppleScript从而启动Photoshop中,确实在图像上的一些处理,将图像保存到磁盘,并返回图像。
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.
现在,我从来没有做过服务器端编程前,让我有点困惑,我应该怎么做。我知道有一些所谓的CGI,这将让我写在C服务(也Objective-C的),我可以简单地执行的C可执行文件。但我想知道如果这这里是我唯一的选择,或有更好的选择?
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?
我也需要发送一个base64连接codeD字符串重新图像到这一网络的服务(其中两个实际上)的presentation。
I will also need to send a base64 encoded string representation of an image to this web-service (two of them actually).
感谢您的帮助。
推荐答案
随着阿曼达说你可以使用大量CGI语言如Python或Ruby的做到这一点。看看Appscript。我曾经有过几个脚本运行这种方式虽然我摆脱他们。这真的很容易。我有大量的 appscript Python示例在我的博客如果你需要一些例子。如果你不知道如何使用Python 看看这个教程。我曾经有一个短(第3页)Python的CGI跑一个完整的博客与评论之前,我终于切换到Word preSS脚本。
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.
这篇关于Objective-C的/ CGI我唯一的选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!