Re: Trying to get image dimensions
Re: Trying to get image dimensions
- Subject: Re: Trying to get image dimensions
- From: Jenni via AppleScript-Users <email@hidden>
- Date: Tue, 2 Jun 2020 18:19:28 -0700
> On Jun 2, 2020, at 5:54 PM, Deivy Petrescu via AppleScript-Users
> <email@hidden> wrote:
>
> 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
Thanks, Deivy. I finally got it to work using your example and
changing the path to a relative one instead of the full path as in my example.
> On Jun 2, 2020, at 6:07 PM, Shane Stanley via AppleScript-Users
> <email@hidden> wrote:
>
> I take that as a pretty good hint to look for a different approach.
I found sips for the command line, but that returns 3 lines of
information that I’d need to parse, so I was hoping for an easier solution. If
anyone else is successfully doing this, I’d like to hear what you’re using.
Thanks again,
Frank
_______________________________________________
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