I’m very new to Applescript. Is it possible to run it on a web server? Then when users upload or create a file, Applescript would automatically modify the file with an application. For example - I know you can do image resizing and manipulation with PHP - but what if there was some more advanced editing you could setup Photoshop to do. Is it practical?
-
Photoshop requires a logged-in console user. Any script you could run would need to be able to touch that user’s console. Big no-no.
-
Performance of your server would hit a wall like a NASCAR driver.
I wouldn’t do it.
Why not just set up a folder action on the folder where the user uploads the file? The folder action script would do the processing automatically.
Still gotta deal with #2. AppleScript and Photoshop together won’t exactly do wonders for the performance of your server (especially Photoshop).
The best question is: what image processing task(s) does he need to perform? (And on what image formats?)
A better solution would probably be for the web server to send an e-mail to a production computer. The production computer recieves the e-mail and launches an applescript that does something and posts the new file to the web server.