Re: Keyboard Maestro & Applescript
Re: Keyboard Maestro & Applescript
- Subject: Re: Keyboard Maestro & Applescript
- From: Jon Pugh via AppleScript-Users <email@hidden>
- Date: Mon, 20 Apr 2020 18:42:44 -0700
On Apr 20, 2020, at 4:08 PM, iurista--- via AppleScript-Users
<email@hidden> wrote:
>
> The problem: Scripts called or executed with Keyboard Maestro do never work.
> The only result is "arch: posix_spawnp: /usr/bin/osascript: Bad CPU type in
> executable".
This sounds like an issue with the executable file /usr/bin/osascript, which is
what runs the AppleScript engine in this scenario. There are reports of this
problem on Catalina related to the change from bash to zsh, though I’m not
clear on the reasons. It’s an easy error to get if you try to run an ARM or PPC
mach-o executable on an Intel machine. The question is, how and why are you in
this position?
Can you run osascript in Terminal?
$ osascript -?
osascript: illegal option -- ?
usage: osascript [-l language] [-e script] [-i] [-s {ehso}] [programfile]
[argument ...]
If so, then it may be Keyboard Maestro doing something weird when calling
osascript. Otherwise it’s osascript being weird.
Jon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden