Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Engaged ,
Feb 12, 2013 Feb 12, 2013

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

TOPICS
Scripting
968
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Valorous Hero , Feb 12, 2013 Feb 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);

Translate
Valorous Hero ,
Feb 12, 2013 Feb 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);

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 12, 2013 Feb 12, 2013

Will this except a string?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Feb 12, 2013 Feb 12, 2013

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

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

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 15, 2013 Feb 15, 2013
LATEST

Thanks that is very helpful...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines