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

Win7 corrupted user profile and ExtendScript

Community Expert ,
Dec 13, 2012 Dec 13, 2012

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.

TOPICS
Actions and scripting
1.7K
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
Adobe
Valorous Hero ,
Dec 13, 2012 Dec 13, 2012

Maybe a permissions problem, have you tried running ESTK as Administrator then try and write a file.

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
Community Expert ,
Dec 13, 2012 Dec 13, 2012

Paul, she has admin rights to the computer, but not the Adminster account.  Might have to get IT do to that.

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 ,
Dec 13, 2012 Dec 13, 2012

She should be able to right click on the ESTK (shortcut/program) and select Run as Administrator.

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
Community Expert ,
Dec 13, 2012 Dec 13, 2012

I'll have her try that, Paul.

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
Community Expert ,
Dec 14, 2012 Dec 14, 2012

I had her try signing on as Admin, but that didn't work. 

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
Dec 17, 2012 Dec 17, 2012

Did you create the folder first?

var fo = Folder( Folder.myDocuments + '/Some/Other/');

fo.create();

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
Community Expert ,
Dec 17, 2012 Dec 17, 2012
LATEST

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.

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
Mentor ,
Dec 13, 2012 Dec 13, 2012

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' );

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
Community Expert ,
Dec 13, 2012 Dec 13, 2012

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.

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