• 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 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

  • 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>)

  • 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