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

What is the file one should delete when scripts are not working

Community Expert ,
Jan 26, 2017 Jan 26, 2017

Copy link to clipboard

Copied

I did find the information, months ago: there is a file, I do not remember if it is a log, or a journal one, that one can delete in order to fix non working scripts in Bridge. (it gets automatically recreated on next launch)

On windows, I think it was not in the /username/app data/roaming tree, and it was not an easy one to find (trust me, I searched already many times)

I saw it as a simple answer in a forum, but I cannot find it back for the sake of it, despite using some google fu...

Thank you in advance!

TOPICS
Scripting

Views

799

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
Community Expert ,
Jan 26, 2017 Jan 26, 2017

Copy link to clipboard

Copied

Of course, after searching for a (very long, I'm stubborn) while, it just takes a post in this forum for me to maybe find the answer: https://www.ps-scripts.com/viewtopic.php?t=9719 (yes, my scripts are working fine) and the answer was maybe posted in this very forum!

Mac - [USER Library]/Application Support/Adobe/ScriptStore (need to check as the PC equivalent needed to be updated)

for Pc, I found the new one: c:/users/{YOURUSERNAME}/AppData/Roaming/Adobe/ScriptStore/

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
Community Expert ,
Jan 26, 2017 Jan 26, 2017

Copy link to clipboard

Copied

After some reading, it seems that it works for some scripts that need to store some info "on the side" to retrieve it later.

I'm all ears if there is another file that can fix non-working scripts.

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
Guide ,
Jan 26, 2017 Jan 26, 2017

Copy link to clipboard

Copied

The same as Photoshop, reset the preferences.

The folder/files you are talking about are way out of date and are not used unless you are using some very old scripts.

Any other files would be dependant on the script itself, if it storing data somewhere, then you would have to look through the code to debug it.

Edit: the Barred Rock script might use the ScriptStore (haven't checked)

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
Community Expert ,
Jan 28, 2017 Jan 28, 2017

Copy link to clipboard

Copied

Thank you'd pretty much aware of the prefs

The script it fixed was the find and replace by Paul Riggott

I don't know why I was under the impression it was a log at another location...

thank you anyways!

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
Guide ,
Jan 28, 2017 Jan 28, 2017

Copy link to clipboard

Copied

I use the same script and it works for me with the latest version of Bridge (2017)

It does not store anything anywhere, so the Bridge prefs might get corrupted and interfere with scripts.

Here is the version I have...

#target bridge

if( BridgeTalk.appName == "bridge" ) {

ReplaceDescription = new MenuElement("command", "Find and Replace", "at the end of tools");

}

ReplaceDescription.onSelect = function () {

var win = new Window( 'dialog', 'Find && Replace' );

g = win.graphics;

var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.99, 0.99, 0.99, 1]);

g.backgroundColor = myBrush;

win.orientation='column';

win.p1= win.add("panel", undefined, undefined, {borderStyle:"black"});

win.p1.preferredSize=[380,100];

win.g1 = win.p1.add('group');

win.g1.orientation = "row";

win.title = win.g1.add('statictext',undefined,'Caption Editor');

win.title.alignment="fill";

var g = win.title.graphics;

g.font = ScriptUI.newFont("Georgia","BOLDITALIC",22);

win.p6= win.p1.add("panel", undefined, undefined, {borderStyle:"black"}); //Replace

win.p6.preferredSize=[380,100];

win.g600 =win.p6.add('group');

win.g600.orientation = "row";

win.g600.alignment='fill';

win.g600.st1 = win.g600.add('statictext',undefined,'Replace');

win.g600.st1.preferredSize=[75,20];

win.g600.et1 = win.g600.add('edittext');

win.g600.et1.preferredSize=[200,20];

win.g610 =win.p6.add('group');

win.g610.orientation = "row";

win.g610.alignment='fill';

win.g610.st1 = win.g610.add('statictext',undefined,'With');

win.g610.st1.helpTip="Leave this field blank if you want to remove the characters";

win.g610.st1.preferredSize=[75,20];

win.g610.et1 = win.g610.add('edittext');

win.g610.et1.preferredSize=[200,20];

win.g620 =win.p6.add('group');

win.g620.orientation = "row";

win.g620.alignment='fill';

win.g620.cb1 = win.g620.add('checkbox',undefined,'Global');

win.g620.cb1.helpTip="Replace all occurrences of";

win.g620.cb2 = win.g620.add('checkbox',undefined,'Case Insensitive');

win.g620.cb2.value=true;

win.g620.cb3 = win.g620.add('checkbox',undefined,'Remove any ()[]');

win.g620.cb3.value=false;

win.g1000 =win.p1.add('group');

win.g1000.orientation = "row";

win.g1000.alignment='center';

win.g1000.bu1 = win.g1000.add('button',undefined,'Process');

win.g1000.bu1.preferredSize=[170,30];

win.g1000.bu2 = win.g1000.add('button',undefined,'Cancel');

win.g1000.bu2.preferredSize=[170,30];

win.g1000.bu1.onClick=function(){

if(win.g600.et1.text == ''){

    alert("No replace value has been entered!");

    return;

    }

win.close(0);

var sels = app.document.selections;

for(var a in sels){

var thumb = sels;

md = thumb.synchronousMetadata;

if(win.g620.cb1.value && !win.g620.cb2.value) var patt = new RegExp (win.g600.et1.text.toString(),"g");

if(!win.g620.cb1.value && win.g620.cb2.value) var patt = new RegExp (win.g600.et1.text.toString(),"i");

if(win.g620.cb1.value && win.g620.cb2.value) var patt = new RegExp (win.g600.et1.text.toString(),"gi");

if(!win.g620.cb1.value && !win.g620.cb2.value) var patt = new RegExp (win.g600.et1.text.toString());

md.namespace =  "http://purl.org/dc/elements/1.1/";

var Caption = md.description ? md.description[0] : "";

if(Caption == "") continue;

var result=patt.test(Caption.toString());

if(result == true){

    var newCaption = Caption.replace(patt,win.g610.et1.text.toString());

    if(win.g620.cb3.value)  newCaption = newCaption.replace(/["'\(\)]/g, "");

    md.description='';

    md.description = newCaption;

        }

    }

}

win.show();

app.document.chooseMenuItem("PurgeCacheForSelected");

};

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
Community Expert ,
Jan 28, 2017 Jan 28, 2017

Copy link to clipboard

Copied

LATEST

Cool, this is a newer version than the one I had. thank you!

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