• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: "Applescript Runner"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:


Hey Jean-Christophe,

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"

----------------------------------------------------------

--
Take Care,
Chris

 _______________________________________________
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

  • Follow-Ups:
    • Re: "Applescript Runner"
      • From: Jean-Christophe Helary <email@hidden>
References: 
 >"Applescript Runner" (From: Jean-Christophe Helary <email@hidden>)

  • Prev by Date: "Applescript Runner"
  • Next by Date: macOS Sierra 10.12.4 Seems to be Breaking a Lot of Stuff
  • Previous by thread: "Applescript Runner"
  • Next by thread: Re: "Applescript Runner"
  • Index(es):
    • Date
    • Thread