Skip to main content
ariel_n
Participating Frequently
January 30, 2025
Open for Voting

ExtendScript: executeCommand on a contextual menu

  • January 30, 2025
  • 5 replies
  • 502 views

Hi there!

 

Is there any way of executing a context menu command?

I'm trying this, which successfully returns the id 3064, but the action does not work on the selected layer.

 

id = app.findMenuCommandId('Convert to Paragraph Text')
app.executeCommand(id)

 

Any idea on how can I make this work?

 

Thanks!!

5 replies

Inspiring
February 1, 2025

Thanks Dan, I've been using Ae for 15 years and never ever right clicked a text layer while using the text tool. why are they hiding it this way? 

Dan Ebberts
Community Expert
Community Expert
January 31, 2025

With a text layer selected, right click in the comp window with the text tool.

Inspiring
January 31, 2025

Is it possible to convert line text to paragraph text in Ae? I've never stumbled upon it, and I searched all the menus for it but didn't find it. Are you sure Ae can do that?

ariel_n
ariel_nAuthor
Participating Frequently
January 31, 2025

Thanks Dan,

Yes, indeed, that was also my thought but still couldn't make it work 😕😕 

It would be great to have more insight into why it is not working and whether it is something that can be added or fixed.

Dan Ebberts
Community Expert
Community Expert
January 31, 2025

I thought maybe you need to have the Type Tool selected to provide the correct context, but that doesn't seem to help. I'm guessing you can't get there with scripting.