Skip to main content
ariel_n
Known Participant
Jan 30, 2025 8:41 AM UTC
Open for Voting

ExtendScript: executeCommand on a contextual menu

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
Feb 1, 2025 1:02 AM UTC

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? 

Translate
Dan Ebberts
Community Expert
Community Expert
Jan 31, 2025 11:32 PM UTC

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

Translate
Inspiring
Jan 31, 2025 11:24 PM UTC

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?

Translate
ariel_n
ariel_nAuthor
Known Participant
Jan 31, 2025 1:15 PM UTC

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.

Translate
Dan Ebberts
Community Expert
Community Expert
Jan 31, 2025 12:18 AM UTC

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.

Translate