Skip to main content
Participating Frequently
August 24, 2025
Question

Need JavaScript code to duplicate the action of a link

  • August 24, 2025
  • 2 replies
  • 157 views

I created a link that opens a PowerPoint show file .ppsx and it works great.  

Click the link and the PowerPoint show pops right up.   However I need to do the same thing with JavaScript from a button where I hopefully can specify the path to where the PowerPoint .ppsx file is.  I've tried:

 

app.execMenuItem("Open");   and

 

app.launchURL("file:///C:/Users/weswa/Dropbox/Great Western/GWappByESA_AA/Run Files/Photos OBC.ppsx");  This one opens a new window where the file has been downloaded and then can be opened.  Not as quick and direct as the link.

 

Need JavaScript code that will open the .ppsx file imediately like the link does.  Any suggestions?  Thank you in advance for any assistance !

2 replies

try67
Community Expert
Community Expert
August 24, 2025

Not possible, unless the PowerPoint file is attached to the PDF.

creative explorer
Community Expert
Community Expert
August 24, 2025

@wes@ESA Uhm? You are asking a Microsoft PowerPoint question and how to create a 'JavaScript code that will open the .ppsx file imediately like the link does?' in an Adobe Forum? I think you are looking for this forum: 

 

 

m
try67
Community Expert
Community Expert
August 24, 2025

Why is this a PowerPoint question? He's obviously using JS in Acrobat to try and launch an external file, so this is certainly the place to ask about it.