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

•  Change "Row Size" in "Layers Panel Options" via Javascript, possible?

Enthusiast ,
Aug 23, 2024 Aug 23, 2024

Hello -

 

I'd like to make a small script that I can easilychange the "Row Size" preview (from the "Layers" palette).

Is possible via Javascript?

ChatGPT says "NO", Gemini write this script (but it doesn't work)   😄

 

#target Illustrator

var doc = app.activeDocument;
var layerPanelOptions = doc.layerPanels[0].options;
layerPanelOptions.rowSize = LayerPanelRowSize.small;

 

Thank you for any help,

enjoy your day…

 

 

 - Dimitri

 

TOPICS
How-to , Scripting
308
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
Adobe
Community Expert ,
Aug 23, 2024 Aug 23, 2024

I'm pretty sure that currently one does not have access to these settings via javascript.

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
Enthusiast ,
Aug 24, 2024 Aug 24, 2024

Hi Kurt -

 

Thx for your reply…

Could we imagine a Adobe Javascript that call an Applescript? What do you think?

 

I made already a small Applescript app that drop down some menus in Acrobat and check/ubcheck some "preferences".

So may be it could work? 

 

 

- Dimitri 

 

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 ,
Aug 25, 2024 Aug 25, 2024

Hi @dimitri_cas, it may work. Your applescript might be able to target "System Events" if I remember correctly and simulate UI, eg clicks etc. But if you can get it to work (a BIG if) it won't be pretty and won't play nice with a larger workflow unless maybe your whole workflow is in Applscript too. I'm no expert so I might be talking as much rubbish as Gemini!

- Mark

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
Enthusiast ,
Aug 27, 2024 Aug 27, 2024
LATEST

Hi Mark -

 

Thanks for your reply.

I'll give it a try when I have time.

 

Enjoy your day.

 

  

 - Dimitri

 

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