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

MS Windows Metafile in different languages

Explorer ,
Mar 04, 2023 Mar 04, 2023

Copy link to clipboard

Copied

Hi

I wrote a script which checks imported images PPI and I need to omit MS Windows Metafile and others (not bitmap). I check graphics using 'imageTypeName' property. Unfortunatelly, the authors of ID translated (in polish version) 'MS Windows Metafile' to 'Metaplik Windows'. I want my script to be used on all ID versions regardless of the language.

 

Is there any other method to check the type of an image? A method not affected by a language?

Or maybe the polish version is the only one with translated name?

TOPICS
Scripting

Views

647

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

correct answers 1 Correct answer

People's Champ , Mar 04, 2023 Mar 04, 2023

What about accessing the type property of a File object? You only need to ge the file path of the link attached to the Image instance.

Votes

Translate

Translate
People's Champ ,
Mar 04, 2023 Mar 04, 2023

Copy link to clipboard

Copied

What about accessing the type property of a File object? You only need to ge the file path of the link attached to the Image instance.

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
Explorer ,
Mar 05, 2023 Mar 05, 2023

Copy link to clipboard

Copied

Yes, yes, yes

app.selection[0].itemLink.linkType

Thank You!

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
People's Champ ,
Mar 05, 2023 Mar 05, 2023

Copy link to clipboard

Copied

LATEST

Well actually that was not the type property I was referring to but it's cool if you could get it eventually 😉

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 ,
Mar 05, 2023 Mar 05, 2023

Copy link to clipboard

Copied

Hi @mateuszp13156491 , Not sure if this would be a solution, but have you looked at the $.locale setter? Does it help if you set it to english or polish at the top of the script?

 

 

$.locale = "en_US"

 

 

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
Explorer ,
Mar 05, 2023 Mar 05, 2023

Copy link to clipboard

Copied

Hi
Not working. It is very confusing, that they translated only this one type.

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