Thursday, October 17, 2019

#1 2019-10-06 06:20:51 pm

peavine
Member
From:: Prescott, Arizona
Registered: 2018-09-04
Posts: 185

Applescript on Catalina

Catalina will probably release this week, and, in preparation, I have been doing a little research on changes to AppleScript. Thus far I've found very little.

The Catalina developer release notes contain the following paragraph:

"To enhance security, AppleEvents and AppleScripts that target an app on a remote system must authenticate as the same user on the remote system. An AppleEvent that targets an app running as a different user receives a procNotFound error."

https://developer.apple.com/documentati … ease_notes

The only pertinent post in this forum concerning Catalina has to do with mail attachments, although it is uncertain if this is a Catalina issue or not:

https://macscripter.net/viewtopic.php?id=47072

Finally, any AppleScript that scripts iTunes will need to be revised.

So, for me, all my Applescripts should work fine. smile

Last edited by peavine (2019-10-06 06:43:19 pm)


2018 Mac mini - macOS Mojave

Offline

 

#2 2019-10-06 09:53:58 pm

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 5959

Re: Applescript on Catalina

There are some other issues.

* Command-line tools are also subject to Gatekeeper security.

* The first time a script tries to access files in certain places -- desktop, downloads, removable drives, network volumes, among others -- authorization will be sought.

* There are some issues with script libraries that access third-party frameworks.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/
latenightsw.com

Offline

 

#3 2019-10-07 07:55:58 am

peavine
Member
From:: Prescott, Arizona
Registered: 2018-09-04
Posts: 185

Re: Applescript on Catalina

Thanks Shane. I knew there just had to be some additional issues. smile

I use a number of command-line tools in my AppleScripts, including a few downloaded from the internet, and the first issue you note will affect me. I'll get to work on this as soon as Catalina is released.

Last edited by peavine (2019-10-07 03:56:47 pm)


2018 Mac mini - macOS Mojave

Offline

 

#4 2019-10-07 04:14:06 pm

peavine
Member
From:: Prescott, Arizona
Registered: 2018-09-04
Posts: 185

Re: Applescript on Catalina

Well, I was wildly optimistic to think that Catalina would work with all of my existing Applescripts, and, in fact, the opposite is closer to the truth.

The biggest issue is command-line utilities that I downloaded from the internet. For example, when running a script that uses one of these utilities, I receive a dialog with the following:

"[utility name] cannot be opened because the developer cannot be verified"

The dialog options are Move to Trash and Cancel.

I added the command-line utility to Accessibility and Full Disk Access under Security and Privacy in System Preferences but that didn't help. sad

Last edited by peavine (2019-10-07 04:15:31 pm)


2018 Mac mini - macOS Mojave

Offline

 

#5 2019-10-07 05:00:29 pm

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 5959

Re: Applescript on Catalina

peavine wrote:

The biggest issue is command-line utilities that I downloaded from the internet.



You will need to track down signed and notarized versions.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/
latenightsw.com

Offline

 

#6 2019-10-07 06:36:01 pm

peavine
Member
From:: Prescott, Arizona
Registered: 2018-09-04
Posts: 185

Re: Applescript on Catalina

Shane Stanley wrote:

You will need to track down signed and notarized versions.



Thanks Shane for the response. I had so much trouble with Catalina--both hardware and software--that I've gone back to Mojave for now.

Last edited by peavine (2019-10-07 08:53:32 pm)


2018 Mac mini - macOS Mojave

Offline

 

#7 2019-10-08 08:48:39 am

peavine
Member
From:: Prescott, Arizona
Registered: 2018-09-04
Posts: 185

Re: Applescript on Catalina

I heard back from the developer of the command-line utility which refused to run under Catalina. He provided a workaround, and I thought I would post it here because it might work with other similar utilities.

The developer's workaround and other comments are:

Here is the procedure:

1. Try to run cpdf executable from the terminal: a whinge box appears. Click 'cancel'.

2. Open System Preferences --> Security and Privacy --> General

3. Cpdf is listed as being banned. Click "Allow Anyway".

This process allows me to run cpdf ok on catalina (release version).

My understanding is that Apple will actually enforce the new, more draconian, policy from January 2020. I will make sure we're ready for that by providing a new executable.


2018 Mac mini - macOS Mojave

Offline

 

#8 2019-10-15 05:38:37 am

maro
Member
From:: Nerima, Tokyo, Japan
Registered: 2004-05-30
Posts: 29
Website

Re: Applescript on Catalina

I can not use remote AppleEvent between 10.15 machines with AppleScript applet.
The compiling phase does not finish (causes AppleEvent timed out after 180 seconds' wait).

Hmm...

Model: MacBook Pro 2012
AppleScript: 2.7
Browser: Safari 13.0.1
Operating System: macOS 10.14


I wrote thousands of AppleScript to realize my idea. Natural language interface, voice recognition commander and so on. Though my mother toungue is strange language, Japanese, my most frequently write language is AppleScript. I believe it is for making things easy and powerful.


Filed under: bug, macOS 10.15

Offline

 

#9 2019-10-15 05:42:51 am

StefanK
Member
From:: St. Gallen, Switzerland
Registered: 2006-10-21
Posts: 11613
Website

Re: Applescript on Catalina

I'd recommend to specify the remote machine in a property

Applescript:

property remoteMachine : "eppc://user:pass@host.local/?uid=501"

The benefit is that the property doesn't affect the compiling process and you can see if there are other issues.

I'm able to send Apple Remote Events at least from Mojave to Catalina.

Last edited by StefanK (2019-10-15 05:46:58 am)


regards

Stefan

Offline

 

#10 2019-10-15 10:13:27 pm

maro
Member
From:: Nerima, Tokyo, Japan
Registered: 2004-05-30
Posts: 29
Website

Re: Applescript on Catalina

Thank you! I ensured it works on macOS 10.15.

macOS 10.15 Server---macOS 10.15 Client : ok
macOS 10.15 Server---macOS 10.14 Client : ok

Model: MacBook Pro 2012
AppleScript: 2.7
Browser: Safari 13.0.1
Operating System: macOS 10.14


I wrote thousands of AppleScript to realize my idea. Natural language interface, voice recognition commander and so on. Though my mother toungue is strange language, Japanese, my most frequently write language is AppleScript. I believe it is for making things easy and powerful.


Filed under: eppc

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)