Mac Help Forums


Reply
Thread Tools Display Modes

may not be possible- but any advice would help - serverside script

 
New Member
Join Date: Apr 2006
Posts: 4
 
      18th April 2006
okay - new to the forum, but thought maybe you guys could help or at least point me in the correct direction.

im working on a collaborative web based project, but the key to it is being able to average path's of illustrator files and output them. Basically i guess what im asking is is there anyway - or how should i go about doing the following:

im creating a flash based website which allows people who visit to upload illustrator (ai) files to my server. i then need to have the server somehow perform the same action as illustrator would to average the paths and output it as a jpg. only way i can forsee doing this is by setting up the server on my mac mini and creating an action through automator which would run illustrator and automate the process and output the files.

any insight or ideas? or possible directions?

thanks in advance-
 
Reply With Quote
 
 
 
 
Ric Ric is offline
Senior Member
Ric's Avatar
Join Date: May 2004
Posts: 4,260
 
      18th April 2006
Hi there and welcome,

there are lots of different ways of doing this. Certainly the way you describe can be done...

I will have gladly come up with a few different ways later today...

Illi doesn't have many Actions so that bit would have to be done in AppleScript.

It is relatively straightforward to do the 'drop' folder bit in Automator...again I'll knock something up later.

Can you let us know what version of OS X, what type of Server you are going to use ?

regards

Ric
 
Reply With Quote
 
New Member
Join Date: Apr 2006
Posts: 4
 
      18th April 2006
wow - that was a fast responce and thank you very much -

as far as server is concerned i can pretty much do any variation- currently im just hosting the site off my mediatemple space and finishing it up at the moment. Ideally id like to run it off that but figure it would be near impossible to do without some very very in depth scripting and most likely using SVG graphics.

so im open to suggestions as far as server software is concerned. also i have a spare Powerbook G4 running 10.4.6 i could use or i could hold off until my new mac mini comes in next week.

soo.... i guess i can accomodate whatever you feel would be the best way. Thanks alot again-

im just a designer with no real training in coding or scripting, just what ive taught myself along the way, and this was the first experimental piece i havent been able to figure out a solution to..

so thnx again
 
Reply With Quote
 
Ric Ric is offline
Senior Member
Ric's Avatar
Join Date: May 2004
Posts: 4,260
 
      18th April 2006
Hi there,

mediatemple ? Is that a hosting account ? Is that where your website is at the minute ?

If you move the website to one of your Mac's are you going to use specific software ie OS X server software or just use Mac OS X client and use the Apache server that comes with it ?

Don't worry if all this sounds like gobledegook ! If it does let me know !

Imagine this website... mac-help.com; it is on a Web Server that I control , therefore I can 'manipulate' it how I want...ie to do what you want I would probably get/write/google a php script that would allow customers to 'upload' their illi files...but to do this you need to do certain things to your website...ie change permissions on certain folders to allow people to upload etc...then when they ahd uploaded files another script or action would send it off for processing.

To explain this look at the User Control Panel on this website and go to the 'Edit Avatar' menu...



This is part of a PHP script that allows the user (you) to select the file from your computer and then upload it to my webserver...this is the first part of what you want to do.

Which you could probably do with your 'mediatemple' account...then you would need a way of moving it from there to you...

I could continue on...but it's best knowing how/what you're going to host the website ?

If you were to 'host the website' on one of your Mac's... do you know how to do this bit ? Have you got a static IP address ? Hosting it on a Mac is certainly the easiest way to go !

If you hosted the website on your Mac then we could just set up in flash a page that allows customers to ftp up the files...these files would then go into a folder' onto your Mac...which in turn would have a folder Action applied to it which would check that they were illi files then possible move them across the network to the Mac which would process them in illi then...(not sure what your next step is !)

So, you need to decide how and on what machine is best for you. If you were to host the 'webserver' on a Mac...have you got a good enough Internet connection...do you know how to set up Apache etc...

An alternative way.
The easiest way I can think off is that your customers email you the file (to a special address) then when your Mac gets an email from the 'specific' address...it runs a rule which says...Has this email got a illi file attached if it has then do this...


regards

Ric
 
Reply With Quote
 
New Member
Join Date: Apr 2006
Posts: 4
 
      18th April 2006
okay, maybe i didnt let on quite so much as i know sorry.

i do quite a bit of very extensive coding, and now a bit about servers, so dont worry about speaking in terms i cant understand. but i will say that was a very good explanation.

Currently my server is running off of a mediatemple server, surprised you havnt heard of them. anyway, i plan on moving them off that and running my own server off one of my macs [ most likely just my mac mini ].

Ive allready set up the apache server on my powerbook and have the file uploading working with a PHP script that my flash site communicates with. So basically i have it working so that people can upload files into a folder.

so what your saying is i can then have a folder action which would take only illustrator files and could run an action and save them into another directory as well? If so that would be amazing if it could do that automatically. Also is there anyway it could generate and XML file with a list of the newly generated images?

if i can nail down those components i can have my flash read the XML file and know whats in the folders and how to pull them.


soooo... i guess i need help with the folder part.


thnx and sorry, seems like this is actually a bit easier than i thought, so maybe i am in the right place
 
Reply With Quote
 
New Member
Join Date: Apr 2006
Posts: 4
 
      18th April 2006
ohh and as far as IP - it is a static IP - and i on an OC3 connection - so bandwidth and speed are not an issue:biggrin:
 
Reply With Quote
 
Ric Ric is offline
Senior Member
Ric's Avatar
Join Date: May 2004
Posts: 4,260
 
      18th April 2006
Hi there,

Quote:
Originally Posted by kingman109
okay, maybe i didnt let on quite so much as i know sorry.
The more info you give the easier/less work it is for us ;-)

Quote:
... but i will say that was a very good explanation.
Thanks.

Quote:
Currently my server is running off of a mediatemple server, surprised you havnt heard of them.
How many hosting companies are there in the world ! ;-)

Quote:
Ive allready set up the apache server on my powerbook and have the file uploading working with a PHP script that my flash site communicates with. So basically i have it working so that people can upload files into a folder.
Okay so for now...

To set up an Action that looks for illi files we could do this...

Watch the movie

Quote:
...If so that would be amazing if it could do that automatically.
this should start you on your way...

regards

Ric
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C-shell Script to Bash Script? qquito Mac 5 2nd August 2007 09:19 PM
Script (in script menu) to run scripts John Rethorst AppleScript 4 10th February 2006 12:52 AM
Why does this script crash the Script Editor? D.M. Procida UK Macs 2 20th October 2004 01:28 PM
script to call a script when "location" changes bluNOboxSPAMthief AppleScript 0 20th May 2004 08:32 AM
Compiling Script Reverts Back To Older Copy Of Script??? James Thompson AppleScript 1 25th September 2003 01:03 AM


All times are GMT +1. The time now is 11:08 PM.
Mac-Help.com is an independent website and is not affiliated with Apple Inc.


Welcome!
Welcome to the Mac Help Forums
 


Latest Threads
Yikes! Teacher needs help!
Mollyc4627 (2 Hours Ago, 08:57 PM)

Unable to log in to websites
AMonty20 (5 Hours Ago, 05:52 PM)

Add Different Speech Commands
bae_22 (6 Hours Ago, 04:40 PM)

Login (2 macs) passwords spontaniously changed?
Roger Vaught (7 Hours Ago, 03:31 PM)

Best car charger or inverter for Macbook Pro?
imeme87 (7 Hours Ago, 03:22 PM)

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51