Skip to main content
Inspiring
March 4, 2023
Answered

MS Windows Metafile in different languages

  • March 4, 2023
  • 2 replies
  • 1038 views

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?

This topic has been closed for replies.
Correct answer Loic.Aigon

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.

2 replies

rob day
Community Expert
Community Expert
March 5, 2023

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"

 

 

Inspiring
March 5, 2023

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

Loic.Aigon
Loic.AigonCorrect answer
Legend
March 4, 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.

Inspiring
March 5, 2023

Yes, yes, yes

app.selection[0].itemLink.linkType

Thank You!

Loic.Aigon
Legend
March 5, 2023

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