Applescript for a Newbie: Copy file to a new folder.

Posted by Mike on Stack Overflow See other posts from Stack Overflow or by Mike
Published on 2009-05-23T19:57:59Z Indexed on 2010/04/14 21:23 UTC
Read the original article Hit count: 192

Filed under:

Hi there!

I've also posted this on the macnn forums, but thought I may get a better response here.

I was hoping to find some help with using applescript (something I have never tried before, though I have a good knowledge of php etc)

I need to create an applescript that will copy specified files from one folder to a newly created folder.

These files need to be specified in the applescript.

so something like:

start

fileToBeMoved = "Desktop/Test Folder 1/test.doc"
newfoldername = "Test Folder 2"

make newfolder and name it 'newfoldername'
copy 'fileToBeMoved' to 'newfolder'

end

I'm so sorry for the rubbish description!

Hope someone can help!

Thanks!

© Stack Overflow or respective owner

Related posts about applescript