Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

ExtendScript: executeCommand on a contextual menu

Explorer ,
Jan 30, 2025 Jan 30, 2025

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!!

Idea No status
TOPICS
Scripting
249
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
5 Comments
Community Expert ,
Jan 30, 2025 Jan 30, 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.

Translate
Report
Explorer ,
Jan 31, 2025 Jan 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.

Translate
Report
Participant ,
Jan 31, 2025 Jan 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?

Translate
Report
Community Expert ,
Jan 31, 2025 Jan 31, 2025

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

Translate
Report
Participant ,
Jan 31, 2025 Jan 31, 2025
LATEST

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
Report