Skip to main content
bagonterman
Inspiring
February 12, 2013
Answered

file.changePath (".."); ? Move file?

  • February 12, 2013
  • 1 reply
  • 1078 views

Dose file.changePath (".."); move the file to a new location? I want to move files and was wondering what function I should use. Thanks.

This topic has been closed for replies.
Correct answer Paul Riggott

In Bridge you would use moveTo();

The equivilant of move up a folder would be...

var thumb = app.document.selections[0];

thumb.moveTo(thumb.spec.parent.parent);

1 reply

Paul Riggott
Paul RiggottCorrect answer
Inspiring
February 12, 2013

In Bridge you would use moveTo();

The equivilant of move up a folder would be...

var thumb = app.document.selections[0];

thumb.moveTo(thumb.spec.parent.parent);

bagonterman
Inspiring
February 12, 2013

Will this except a string?

Paul Riggott
Inspiring
February 12, 2013

It wants a folder object, a string will not work.

var thumb = app.document.selections[0];

thumb.moveTo(Folder("/c/temp"));