• 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: Window Swap Code Broken in High Sierra?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Window Swap Code Broken in High Sierra?


  • Subject: Re: Window Swap Code Broken in High Sierra?
  • From: Shane Stanley <email@hidden>
  • Date: Fri, 11 Aug 2017 12:26:04 +1000

On 11 Aug 2017, at 1:05 am, Doug Adams <email@hidden> wrote:
>
> I had the same problem with size() for a frame.

I presume that was doing something like:

someThing's frame()'s |size|()

Getting |size|() directly works fine here:

use framework "Foundation"
use framework "AppKit"
use scripting additions

set thePath to POSIX path of (choose file)
set theImage to current application's NSImage's alloc()'s
initWithContentsOfFile:thePath
theImage's |size|()
--> {width:893.0, height:748.0}

--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Window Swap Code Broken in High Sierra? (From: Doug Adams <email@hidden>)

  • Prev by Date: Re: Window Swap Code Broken in High Sierra?
  • Next by Date: Re: Window Swap Code Broken in High Sierra?
  • Previous by thread: Re: Window Swap Code Broken in High Sierra?
  • Next by thread: Re: Window Swap Code Broken in High Sierra?
  • Index(es):
    • Date
    • Thread