Skip to main content
bagonterman
Inspiring
January 4, 2013
Question

Copy a file to a directory in Bridge

  • January 4, 2013
  • 1 reply
  • 752 views

I am trying to copy a file to a folder in bridge. I am trying this

var myCopy=fileToCopy.copy(macdesign);

fileToCopy being my variable wich is a string and then macdesign wich is also a string of the directory that I want to copy it to. I am just not sure of the syntax. Any help would be greatly appreciated.

Brett G.

This topic has been closed for replies.

1 reply

Paul Riggott
Inspiring
January 4, 2013

In Bridge you can use...

//thumbnail.copyTo(Folder);

app.document.selections[0].copyTo(Folder("/c/dvds"));

bagonterman
Inspiring
January 4, 2013

Thanks Paul your the man. I also found a post that helped also. I am not sure how to link to it so I mad a snap shot.

So what I ended up using was this. var myCopy=File(fileToCopy).copy(macdesign) and on your target URI you have to put the file name on the end of it. Now I am going to add this to a button click.

bagonterman
Inspiring
January 4, 2013

Works Great on the click thanks.