Copy link to clipboard
Copied
One of our photographers had her Win7 profile corrupted. IT came by and restored her profile, and everything seemed to be working fine except that now a script that I wrote that saves an XML preference file a subfolder in her my documents folder can't be recognized. In fact I can't get ExtendScript to create a file in any directory below the my documents folder, and it will return false if I check that a file exists - even one that does exists. I've tried both the "~" to get to the directory and hardcoding the path. Nothing works. Has anyone run across this? She can save her normal PS preferences, write files to those folders, etc; but Extendscript just can't see them.
Copy link to clipboard
Copied
Maybe a permissions problem, have you tried running ESTK as Administrator then try and write a file.
Copy link to clipboard
Copied
Paul, she has admin rights to the computer, but not the Adminster account. Might have to get IT do to that.
Copy link to clipboard
Copied
She should be able to right click on the ESTK (shortcut/program) and select Run as Administrator.
Copy link to clipboard
Copied
I'll have her try that, Paul.
Copy link to clipboard
Copied
I had her try signing on as Admin, but that didn't work.
Copy link to clipboard
Copied
Did you create the folder first?
var fo = Folder( Folder.myDocuments + '/Some/Other/');
fo.create();
Copy link to clipboard
Copied
Yes, I tried creating a folder with the create() function, then I did a search on the computer to see if it was saved in some odd place. It wasn't found.
Copy link to clipboard
Copied
It sounds like a permissions issue… although I don't use windows… I would however use the folder objects static properties ( > CS4 ) for a flexible path as in…
var f = File( Folder.myDocuments + '/Some/Other/File.xml' );
Copy link to clipboard
Copied
I did try writing a static path, but it would not work. It would only recognize the folder "My Documents" and then nothing below that.
I also had her reinstall PS, and that didn't work.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now