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

Pass parameter to menuaction event

Contributor ,
Feb 21, 2019 Feb 21, 2019

Hi,

     We can call the menu action using id or name.  How to pass the values to that to complete the process?

var selectAllActn = app.menuActions.itemByID(118799);

if(selectAllActn.checked == false)

{

selectAllActn.invoke();           

}

How to pass horizontal and vertical value to it to move selected object.

Thanks,

Sudha K

TOPICS
Scripting
400
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
Community Expert ,
Feb 21, 2019 Feb 21, 2019

No way. Use DOM command move() on selected objects one by one.

Regards,
Uwe

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
Contributor ,
Feb 21, 2019 Feb 21, 2019

Oh... No option to use parameters..

I am having some issue on normal move.  I did not know i mistake I am doing.

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
Community Expert ,
Feb 22, 2019 Feb 22, 2019
LATEST

What are the issues?

Tell us (also with screenshots):
1. This is my situation, e.g. some objects selected

2. What you want to do. Exactly.

3. Situation after the script run. Fake it if you must by using InDesign's UI.

4. Provide the code you have trouble with.

Note: For this there is no menu command you can use by scripting.

Just loop the selection and use method move() on the selected objects.

For the screenshots have frame edges visibility enabled.

Also hidden characters showing.

Regards,
Uwe

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