• 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: Script issues under 10.12.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script issues under 10.12.2


  • Subject: Re: Script issues under 10.12.2
  • From: "@lbutlr via AppleScript-Users" <email@hidden>
  • Date: Sun, 11 Oct 2020 07:20:17 -0600

On 17 Dec 2016, at 12:20, @lbutlr <email@hidden> wrote:
>
> I've been running the following script for several years, but it is breaking
> under macOS 10.12.2
>
> #!/bin/bash
> SIGHOME="$HOME/.signature"
> $HOME/bin/fortune $HOME/mysigs > $SIGHOME
>
> MAIL=`ps -U"$USER" -co command | grep "\bMail\b"`
>
> if [ "$MAIL" ]; then
>     cat $SIGHOME | sed -e 's/"/\\"/g' > $HOME/.mail_signature
>     MYSIG="$(<$HOME/.mail_signature)"
>     osascript <<EOF
>          tell application "Mail" to set content of signature "Fortune" to "--
> " & return & "$MYSIG"
> EOF
> fi

4 years later, and this now works again in ,acOS 11.0 betas.



--
Mos Eisley spaceport. You will never find a more wretched hive of
        scum and villainy. We must be cautious.

 _______________________________________________
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

  • Prev by Date: Colour conversion values from InDesign based on document ICC settings
  • Next by Date: Position Dialog Display on Screen?
  • Previous by thread: Colour conversion values from InDesign based on document ICC settings
  • Next by thread: Position Dialog Display on Screen?
  • Index(es):
    • Date
    • Thread