Monday, December 9, 2019

#1 2019-11-17 09:52:09 am

Fredrik71
Member
Registered: 2019-10-23
Posts: 4

WebKit Utilities (ASOC) from Sal Soghoian

Hello all.

I was trying WebKit Utilities (ASOC) from Sal.

I open it in script editor and made a new bundle for macOS Mojave.

Test the example script from Sal with New Template Cocoa-AppleScript Applet.app

-- main.scpt
-- Cocoa-AppleScript Applet
--
-- Copyright 2011 {Your Company}. All rights reserved.

-- This is the main script for a Cocoa-AppleScript Applet.
-- You can put the usual script applet handlers here.

use AppleScript version "2.7"
use script "WebKit Utilities"

set the windowObject to display URL ¬
    "http://www.apple.com" window size {600, 800}

I get this error:
Can’t get |size| of {«class form»:«constant ****usrp», «class want»:property, «class seld»:"visibleFrame", from:mainScreen of NSScreen}. (-1728)

Not sure, but thinking the window size from the NSScreen is not correct setup.

Anyone any clue ??


Filed under: webkit

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)