Re: "Applescript Runner"
Re: "Applescript Runner"
- Subject: Re: "Applescript Runner"
- From: Christopher Stone <email@hidden>
- Date: Fri, 31 Mar 2017 23:34:00 -0500
On 03/31/2017, at 23:12, Jean-Christophe Helary <email@hidden> wrote:
In the code for apples-mode (emacs), there is a reference to Applescript Runner to run code when the bug documented here is triggered:
That's not a big problem anymore, but it's still a good idea to explicitly give your dialogs context:
----------------------------------------------------------
#!/usr/bin/env bash
read -r -d '' applescriptCode <<'EOF' tell application (path to frontmost application as text) display dialog "Hello, world!" end tell EOF
osascript -e "$applescriptCode"
----------------------------------------------------------
|
_______________________________________________
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