Re: Window Swap Code Broken in High Sierra?
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