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

Bridge 2023 target not being honored

LEGEND ,
Nov 10, 2022 Nov 10, 2022

Copy link to clipboard

Copied

I have a script which sets the folder to be displayed at startup, by changing the Bridge folder when closing the app. Bridge sets the target preference and that is opened at next launch. Works in previous versions, of course its one more thing broken in 2023. I can watch the target being correctly set (on Windows, in the registry) but that is ignored upon relaunch.

 

#target bridge
if(BridgeTalk.appName == 'bridge'){
    var LaunchFolder = new Object; //pref panel identifier
    #include "prefsReader.jsxinc" //shared prefs read code
    try{
      function appQuit(event){
            if(event.location == 'app' && event.type == 'close' && app.preferences.UtilPack_launchfolder_auto == true && vers[0] < 13){
                if(Folder(app.preferences.UtilPack_launchfolder_folder).exists){
                    var thumb = new Thumbnail(Folder(app.preferences.UtilPack_launchfolder_folder));
                    app.documents[0].thumbnail = thumb;
                    }
                }
            return{handled:false};
            }
        app.eventHandlers.push({handler: appQuit});
        }
    catch(e){
        alert(e + ' ' + e.line);
        }
    }

 

The preference is set in the Bridge Preferences but this is simple, just changes the current folder at quit. It DOES change correctly. Apparently, the current folder is stored somewhere else and target ignored.

TOPICS
Bug , Problem or error , Scripting

Views

65

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
no replies

Have something to add?

Join the conversation