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

Can the script distinguish if I'm selecting an image or a text box?

Guide ,
Apr 18, 2025 Apr 18, 2025

Can the script distinguish if I'm selecting an image or a text box?
For example, if I select an image, it returns: you selected image 1.
If I select both, it returns: You selected image 1 and textbox 1.

 

02.png

TOPICS
Bug , Feature request , How to , Performance , Scripting
123
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 ,
Apr 18, 2025 Apr 18, 2025

A script can do that, sure. For each item in app.selection, iterate through and alert(app.selection[i].constructor.name).

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 ,
Apr 18, 2025 Apr 18, 2025

@dublove

 

We are helping you with scripts for so many years - and you're asking such question? 

 

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
Guide ,
Apr 19, 2025 Apr 19, 2025

The question does seem a bit abstract ......

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 ,
Apr 19, 2025 Apr 19, 2025
LATEST

Seems like one even chatgpt could answer...

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