Tuesday, June 27, 2017

#1 2017-06-13 12:53:49 pm

mriesman
Member
Registered: 2015-12-25
Posts: 2

"open location" buggy in Sierra 10.12.5

I have a little script in my scripts folder that runs in Yosemite:

try
    tell application "Screen Sharing" to quit
    open location "vnc://pge:xpge@192.168.0.20"
on error errorText
    display dialog errorText
end try

Now, in Sierra, it doesn’t work. Instead, I get the message: '"vnc://pge:xpge@192.168.0.20" doesn’t understand the “«event GURLGURL»” message.’

But when I run it within Script Editor, it succeeds and opens a window on on the target.

WTF?

Anyway, I had the bright idea to tell Script Editor to open the url.  This now works:

try
    tell application "Screen Sharing" to quit
    tell application "Script Editor"
        open location "vnc://pge:xpge@192.168.0.20"
    end tell
on error errorText
    display dialog errorText
end try

This must be a bug. Anyone else seen this?

Offline

 

#2 2017-06-13 02:01:04 pm

Yvan Koenig
Member
Registered: 2006-09-14
Posts: 3059

Re: "open location" buggy in Sierra 10.12.5

This bug was reported soon after the delivery of 10.12.5

It was not striking in the beta versions but was introduced in the distributed version.

It's corrected in the 10.12.6 beta so we just have to wait a bit.

When I reported it here, I encapsulated the main instruction in a tell application "Safari" … end tell block.
Honestly I never thought that telling to TextEdit may work the same.

Yvan KOENIG running Sierra 10.12.5 in French (VALLAURIS, France) mardi 13 juin 2017 21:00:51

Offline

 

#3 2017-06-13 03:06:43 pm

jweaks
Member
Registered: 2007-05-27
Posts: 5
Website

Re: "open location" buggy in Sierra 10.12.5

Thanks for the update, Yvan, that it is fixed in 10.12.6 beta.
It has broken some production Workflow Actions I developed that are distributed with a commercial software package.

Offline

 

#4 2017-06-13 03:08:45 pm

Yvan Koenig
Member
Registered: 2006-09-14
Posts: 3059

Re: "open location" buggy in Sierra 10.12.5

jweaks wrote:

that it is fixed in 10.12.6 beta.

It"s why I wrote in my message roll

Yvan KOENIG running Sierra 10.12.5 in French (VALLAURIS, France) mardi 13 juin 2017 22:08:18

Offline

 

Board footer

Powered by FluxBB

[ Generated in 0.038 seconds, 10 queries executed ]

RSS (new topics) RSS (active topics)