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.
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.
Copy link to clipboard
Copied
You need to use thumbnail an example would be.
app.document.thumbnail = Folder(Folder.desktop + "/myfolder");
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.
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.
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.
Copy link to clipboard
Copied
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.