AppleScript. How do I convert screen pixels to points?

How do I convert screen pixels to points?

I plan to use the points in the program to move the shape to the desired position.

If I understand your question, this conversion depends on screen resolution.

points = pixels / scale factor

scale factor is usually 2 or may be 3. It was 1 in older iPhones (iPhone 3 and below) or iPad; See table here: https://www.ios-resolution.com

But why not using only points ? Why do you need to use pixels ?

I have a Macbook. The pixels are given by some program, which I need to translate into points.

AppleScript. How do I convert screen pixels to points?
 
 
Q