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

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

Engaged ,
Aug 23, 2024 Aug 23, 2024

Copy link to clipboard

Copied

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

Views

163

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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 

 

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Hi Mark -

 

Thanks for your reply.

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

 

Enjoy your day.

 

  

 - Dimitri

 

Votes

Translate

Translate

Report

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