Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
No way. Use DOM command move() on selected objects one by one.
Regards,
Uwe
Copy link to clipboard
Copied
Oh... No option to use parameters..
I am having some issue on normal move. I did not know i mistake I am doing.
Copy link to clipboard
Copied
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
Find more inspiration, events, and resources on the new Adobe Community
Explore Now