Re: Script issues under 10.12.2
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