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

Is it possible to set presentationPath in Bridge?

Engaged ,
Feb 05, 2014 Feb 05, 2014

Copy link to clipboard

Copied

I've tried almost everything I can think of to set presentationPath to the folder I want, but no matter what I do, it always gets set to "Desktop".

app.document.presentationPath="E:\Photoshoots";

app.document.presentationPath="/e/Photoshoots";

fold=new Folder("E:\Photoshoots");

app.document.presentationPath=fold.path;

app.document.presentationPath=fold; <---I know it's supposed to be a string, but I tried this anyway.

Yes, the folder "E:\Photoshoots" does exist.

I know this should work. I just can't see what I'm doing wrong.

TOPICS
Scripting

Views

873

Translate

Translate

Report

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

Enthusiast , Feb 05, 2014 Feb 05, 2014

No, you do not use presentationPath to change folders.

The command would be.

app.document.thumbnail = Folder("e/photoshoots");

This will then change the current folder to e/photoshoots

presentationPath is only used to give you the current path.

Votes

Translate

Translate
Enthusiast ,
Feb 05, 2014 Feb 05, 2014

Copy link to clipboard

Copied

You need to use thumbnail an example would be.

app.document.thumbnail = Folder(Folder.desktop + "/myfolder");

Votes

Translate

Translate

Report

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 05, 2014 Feb 05, 2014

Copy link to clipboard

Copied

Do you mean something like:

fold=new Folder("E:\Photoshoots");

fThumb=new Thumbnail(fold);

app.document.presentationPath=fThumb;

If so, I've tried that. It doesn't work either.

Votes

Translate

Translate

Report

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 05, 2014 Feb 05, 2014

Copy link to clipboard

Copied

The documentation for it is...

presentationPath property

presentationPath:String

The path to the content displayed in the Content pane.

Implementation

public function get presentationPath():String

public function set presentationPath(value:String):void

The value it holds and the value used to set it are both supposed to be of type String.

Votes

Translate

Translate

Report

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
Enthusiast ,
Feb 05, 2014 Feb 05, 2014

Copy link to clipboard

Copied

No, you do not use presentationPath to change folders.

The command would be.

app.document.thumbnail = Folder("e/photoshoots");

This will then change the current folder to e/photoshoots

presentationPath is only used to give you the current path.

Votes

Translate

Translate

Report

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 05, 2014 Feb 05, 2014

Copy link to clipboard

Copied

LATEST

Awesome. Got it now. Thank you.

Now I'm wondering why the documentation doesn't specify Read Only for presentationPath. And why it shows for the public function that you can set it.

I guess it doesn't matter.

Thank you very much, Phillip.

Votes

Translate

Translate

Report

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