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.
Have something to add?