Re: Re: Keyboard Maestro & Applescript
Re: Re: Keyboard Maestro & Applescript
- Subject: Re: Re: Keyboard Maestro & Applescript
- From: iurista--- via AppleScript-Users <email@hidden>
- Date: Tue, 21 Apr 2020 04:51:50 +0200 (CEST)
- Importance: 3 (Normal)
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
I can call eg /usr/bin/osascript's help:
Last login: Tue Apr 21 04:40:55 on ttys000
myMac:~ rod$ /usr/bin/osascript -h
/usr/bin/osascript: illegal option -- h
usage: osascript [-l language] [-e script] [-i] [-s {ehso}] [programfile]
[argument ...]
myMac:~ rod$
but this is no help to me (my understanding in computing is lower than that),
and a query as for architecture is:
myMac:~ rod$ file /usr/bin/osascript
/usr/bin/osascript: Mach-O 64-bit executable x86_64
Rudolf
_______________________________________________
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