hi all,
i’m new to the world of MAC,
i have a website hosted in my MAC (iMAC, 512 RAM, 250 Go,…), my website allow to user to send their video to a specifiv folder in my disk, then i want to perform an action on that folder:
make a directory for the .mov files then copy paste all the .mov files to it
make a directory for the .avi files then copy paste all the .avi files to it
…
is it possible to create a script that i can call it from flash, or php.
if else how i can automate this action to be execiuted each day at a specific time
thanks for the help
Model: iMAC
Browser: Firefox 1.0.2
Operating System: Mac OS X (10.4)
I know I probably rely on UNIX too much, but I’d do this with a “do shell script” command.
-- make new folder, copy all files with extension .mov to new folder (note that different commands are seperated with semi-colon)
do shell script "mkdir /path/to/new/folder/folder_name ; cp /path/to/movies/*.mov /path/to/folder_name"
Not sure about running it from Flash, but you can use Cronnix (free download) to make this a cron job that runs periodically. You could also make it a folder action that kicks off whenever a new movie is added to the folder (Unfortunately, I can’t help you with this, as I’m having problems setting up Folder Actions on my machine).