• 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: Jenni via AppleScript-Users <email@hidden>
  • Date: Tue, 2 Jun 2020 17:25:57 -0700


> On Jun 2, 2020, at 4:59 PM, Shane Stanley via AppleScript-Users
> <email@hidden
> <mailto:email@hidden>> wrote:
>
> Get rid of the "as alias". The 'choose file' command produces a file
> reference, which is what Image Events wants. Actual aliases are proving
> problematic in places under 10.15.
>
> You should also go to System Preferences -> Security & Privacy -> Privacy and
> grant Image Events Full Disk Access.

        Thanks, Shane, but neither of those changed anything.  I’m still
getting the error whether I call the file directly or choose it, or whether
it’s an alias or not.  Here’s another version I’ve tried:

set theImage to "Code HD:Users:code27:Downloads:800289_01.jpg" as alias
tell application "Image Events"
        set dimensionList to the dimensions of theImage.   — <-- It always gets
stuck here.
        set fileWidth to the first item of dimensionList
        set fileHeight to the second item of dimensionList
end tell

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

  • Follow-Ups:
    • 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>
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>)

  • 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