Re: System Events 'not running'
Re: System Events 'not running'
- Subject: Re: System Events 'not running'
- From: Axel Luttgens <email@hidden>
- Date: Sun, 04 Nov 2018 17:26:51 +0100
- Ironport-phdr: 9a23:oBn5xxzJNaiwv2zXCy+O+j09IxM/srCxBDY+r6Qd1OwRIJqq85mqBkHD//Il1AaPAd2Eraocw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze+/94HRbglSmDaxfa55IQmrownWqsQYm5ZpJLwryhvOrHtIeuBWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbOSxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDwULs6Wymt771zRRHolCgJODE2/nzZhMx+kqxUohGvqRtkzo7IeYGVMeZyfqPBcd4YQ2dKQ8ZfVzZGAoO5d4YCE+UAMvhcr4LgoVUOsAe+BRWjBOzxzD9InWL90Kog3OUuDw7G2BYsH9YTsHTIsNX1O7kdUeauzKTT1jXDbPNX2THj54jUaBwuuu+DUKt2fMHMykcvDxvIgkiMpYHhJT+Zy+oAvmeB4+duSO6jkXMrpgByrzWp28wikJPGhpgPxVDB7Sh5xYE1KsCmR0Njet6kFYdQtzmdN4trXsMuW2Fotzg+yr0BoZO0eDUGxZA5yxLFdvCKcouF7gj+WOqLLzp3gmppeLO5hxms7Uit0vDwWtWw3VpQsyZInNbBumoD2hDO8MSLV/pw80S51TaKzQ/T6+VEIU4ularcLp4s2qQ/l5UNvkTHBCP2nFj2jLOKdkUr5Oeo7f/nb679pp+fN450jB/xMrg0lsOkH+s0KhIOUHSD+eSgyL3j+lX0T69Sjv0ulqnWrovaKtgBpq64Gw9Vzp8v6wukDzi4ytQYhmIKLFZEeBKck4jpIEvCL+rgDfenh1Sjji1nyOzBPr3kUd3xKS3Ki6qpKb9l80pR0wEpzMhDoo9PB6saCPbyQVPq8tXAFhs0dQezxrC0Js9609Y3SW+LSouELL/dvFmTrrYmM+SIIosIpCryJv4+z+XtnHk0hRkXcP/6jtMsdHmkE6E+cA2ian32j4JZHA==
Hello David,
Please allow me to go back with your initial post:
> Le 2 nov. 2018 à 22:44, Jacopille, David a écrit :
>
> […]
> After upgrading to OS X Server 10.12 our osascript launched Applescript’s
> randomly error with “Application ___ isn’t running”… the application in the
> first tell statement in the script.
> […]
> I get the feeling that the problem is with the parsing the scripts, which are
> built on the fly as text, before running in osascript. Whatever parses the
> text needs to get the dictionaries of the apps mentioned in the AppleScript.
> If the applications in the tell statements, or any process or tool that’s
> part of getting the dictionaries, was so hosed it could not respond, the lack
> of response could be interpreted as the application isn’t running.
> […]
I’ve tried to instantiate the above by saving this short bash script:
#!/bin/bash
# Let's build a script on the fly (kind of).
scpt='
tell application "TextEdit"
path of documents
end tell
'
# Let's execute it.
/usr/bin/osascript - <<<"$scpt"
as "david.sh" on my desktop, and by running it from Terminal:
$ Desktop/david.sh
Does this correctly reflect the basics of your workflow?
Axel
_______________________________________________
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