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?
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.
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.
Copy link to clipboard
Copied
Yes, yes, yes
app.selection[0].itemLink.linkType
Thank You!
Copy link to clipboard
Copied
Well actually that was not the type property I was referring to but it's cool if you could get it eventually 😉
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"
Copy link to clipboard
Copied
Hi
Not working. It is very confusing, that they translated only this one type.