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 14:24:12 +0200
> Le 4 juin 2020 à 13:30, Shane Stanley via AppleScript-Users
> <email@hidden> a écrit :
>
> On 4 Jun 2020, at 6:25 pm, Yvan KOENIG via AppleScript-Users
> <email@hidden
> <mailto:email@hidden>> wrote:
>>
>> Given a variable k containing a descriptor of a file
>> if k is of class alias, «class furl», text, its accepted by Image Events:
>> tell application "Image Events"
>> set im to open k
>> ….
>> end tell
>
> Not with aliases in Catalina.
>
>> 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.
>
> That's not the only thing that fails. This code, which used to work, fails
> under Catalina:
>
> set k to (choose file)
> tell application "Image Events"
> set openedFile to open k
>
Thank you Shane.
Just for info, what is returned by
set k to (choose file)
class of k
when it's executed under Catalina ?
Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) jeudi 4
juin 2020 14:23:06
_______________________________________________
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