Re: Trying to get image dimensions
Re: Trying to get image dimensions
- Subject: Re: Trying to get image dimensions
- From: Deivy Petrescu via AppleScript-Users <email@hidden>
- Date: Tue, 2 Jun 2020 20:54:00 -0400
Actually I just tried and it works both with file or alias:
set k to “path to an image”
tell application "Image Events"
set im to open alias k
set dimensionList to the dimensions of im -- <-- It always gets stuck
here.
set fileWidth to the first item of dimensionList
set fileHeight to the second item of dimensionList
end tell
—> it worked!
Deivy Petrescu
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden