• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Trying to get image dimensions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Trying to get image dimensions
      • From: Shane Stanley via AppleScript-Users <email@hidden>
References: 
 >Trying to get image dimensions (From: Jenni via AppleScript-Users <email@hidden>)
 >Re: Trying to get image dimensions (From: Shane Stanley via AppleScript-Users <email@hidden>)
 >Re: Trying to get image dimensions (From: Jenni via AppleScript-Users <email@hidden>)
 >Re: Trying to get image dimensions (From: Deivy Petrescu via AppleScript-Users <email@hidden>)
 >Re: Trying to get image dimensions (From: Shane Stanley via AppleScript-Users <email@hidden>)
 >Re: Trying to get image dimensions (From: Deivy Petrescu via AppleScript-Users <email@hidden>)
 >Re: Trying to get image dimensions (From: Yvan KOENIG via AppleScript-Users <email@hidden>)
 >Re: Trying to get image dimensions (From: Shane Stanley via AppleScript-Users <email@hidden>)

  • Prev by Date: Re: Trying to get image dimensions
  • Next by Date: Re: Trying to get image dimensions
  • Previous by thread: Re: Trying to get image dimensions
  • Next by thread: Re: Trying to get image dimensions
  • Index(es):
    • Date
    • Thread