This content has been marked as final.
Show 2 replies
-
1. Re: CS3 folders with spaces in the name
Michael L Hale Jul 5, 2009 6:37 AM (in response to John.Kordas)Using decodeURI should take care of the problem with spaces in the path.
var myNewFolder = new Folder( decodeURI(myPsDoc.path) +"/ScriptFolder/");
-
2. Re: CS3 folders with spaces in the name
John.Kordas Jul 5, 2009 3:48 PM (in response to Michael L Hale)Thanks Michael but I'm still getting the same error on decodeURI(myPsDoc.path).
Did a little test using:
changed var myNewFolder = new Folder(decodeURI(myPsDoc.path)+"/ScriptFolder/");
to var myNewFolder = new Folder("/c/Hold/Resize test folder/ScriptFolder");
still got the error.
changed newFile = new File(myNewFolder+"/"+justname)
to newFile = new File("/c/Hold/Resize test folder/ScriptFolder"+"/"+justname)
and the script worked.
so then I tried newFile = new File(decodeURI(myNewFolder)+"/"+justname)
Thanks for you help much appreciated.
Cheers John.


