[ID-4265002][ExtendScript] Folder.execute() no longer works in Indesign 20.4
Folder.execute() no longer reveals the folder and activate the Finder. It does nothing. Tested on Indesign 20.4 on MacOS 15.5.
Steps to reproduce:
- Run this ExtendScript:
Folder.desktop.execute();
Expected result: activating the Finder, revealing the Desktop folder.
Actual result: nothing.
See also this post on the forum.

The fix of the issue is now available in the latest InDesign 2025(v20.4.1.004). We recommend you upgrade to the latest version for the fix.
If you are unable to see the update, go to the Creative Cloud application click on the context menu on the top right, and click on Check for App Updates.
—
Adobe InDesign Team
-
Hauke commented
With ID 2025 (found with Build 20.4.0.52) File.prototype.displayName seems to be always empty. With ID 2024 I there was the file name withouth the path, as to be expected.
-
Hauke commented
With ID 2025 (found with Build 20.4.0.52) File.prototype.displayName seems to be always empty. With ID 2024 I there was the file name withouth the path, as to be expected.
-
m1b commented
I can confirm this issue is fixed in Indesign 20.4.1. Thanks!
-
Uwe Laubender commented
Sample ExtendScript code where File.execute() is not working anymore with InDesign 2025 v20.4.0.52:
/*
Script is working with InDesign 2025 v20.3.0NOT SO with nDesign 2025 v20.4.0.52
*/var txtFile = File.openDialog
(
"Select a TextEdit *.txt File in the Finder",
function(file)
{
return file instanceof Folder || (!(file.hidden) && file.name.match(/\.txt$/i));
},
false
);if( txtFile == null )
{
alert( "SCRIPT | User terminated action." );
exit(0);
};// Open TextEdit App ( if not already open ) and open the selected text file from the dialog above:
txtFile.execute();
Regards,
Uwe Laubender
( Adobe Community Expert ) -
Uwe Laubender commented
It seems that File.execute() is also not working with InDesign 2025 v20.4.0.52 on macOS.
That's really critical!Regards,
Uwe Laubender
( Adobe Community Expert ) -
Uwe Laubender commented
Also see discussion at:
v20.4.0.52 ExtendScript Folder.execute() does not work anymore
Laubender, Community Expert
https://community.adobe.com/t5/indesign-discussions/v20-4-0-52-extendscript-folder-execute-does-not-work-anymore/td-p/15373687NOTE: It seems that this bug is macOS-only. But let's see what others will say on Windows machines…
Regards,
Uwe Laubender
( Adobe Community Expert )