Re: Trying to get image dimensions
Re: Trying to get image dimensions
- Subject: Re: Trying to get image dimensions
- From: Yvan KOENIG via AppleScript-Users <email@hidden>
- Date: Thu, 4 Jun 2020 10:25:09 +0200
Given a variable k containing a descriptor of a file
if k is of class alias, «class furl», text, its accepted by by Image Events:
tell application "Image Events"
set im to open k
….
end tell
if k is of class alias, coercing it to «class furl» or to class text is
accepted by Image Events.
What is rejected is the attempt to coerce an alias into an alias which is what
the original code was doing because k was defined by
set k to choose file which for years, as far as I know, is returning an alias
object.
Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) jeudi 4
juin 2020 10:22:52
_______________________________________________
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