• 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: [ANN] Piyomaru choose multiple list lib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ANN] Piyomaru choose multiple list lib


  • Subject: Re: [ANN] Piyomaru choose multiple list lib
  • From: Takaaki Naganoya via AppleScript-Users <email@hidden>
  • Date: Wed, 11 Dec 2019 20:17:25 +0900

> 2019/12/11 18:45、Jean-Christophe Helary via AppleScript-Users
> <email@hidden>のメール:
>
>> On Dec 11, 2019, at 14:46, Takaaki Naganoya via AppleScript-Users
>> <email@hidden> wrote:
>>
>> We can execute AppleScript via Messages.app (not ensured now) and returns
>> various data as string.
>
> Can you explain how ?
>
> Jean-Christophe Helary

Message.app (iChat.app)  has ...had? auto respond function to text chat.
Message renpond to text chat invitation and text chat messages.

Now we can make Message.app template scripts.

I made a small command interpreter via Message.app.

When I send AS command to remote Mac via Message.app, remote Mac receive
command string via Message.app.

My command interpreter script accepts the command and execute it on the remote
Mac.
Then it returns result via text chat or attached zip file (Message app can not
send a large text message, so I made results archive and send it as attached
file).

Now, I can not find the auto respond function with Message.app.
Can anyone find it?

> (not ensured now)

I wrote this auto-responder script in macOS 10.6--9 era, as my memory.


<AppleScript>
using terms from application "Messages"
        on message received this_message from this_buddy for this_chat
                (*EXAMPLE: this routine automatically sends a random response
to messages from specified buddies
                set this_name to the name of this_buddy
                if the name of this_buddy is in {"Johnny Appleseed"} then
                        set canned_responses to {"Oh, I know!", "I was just
thinking about that.", "Maybe tomorrow.", "Seems logical."}
                        set this_response to some item of the canned_responses
                        send this_response to this_chat
                end if
                *)
        end message received
end using terms from
</AppleScript>


Takaaki Naganoya

> _______________________________________________
> 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

--
Takaaki Naganoya
email@hidden
http://piyocast.com/as/



 _______________________________________________
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: [ANN] Piyomaru choose multiple list lib
      • From: Jean-Christophe Helary via AppleScript-Users <email@hidden>
References: 
 >[ANN] Piyomaru choose multiple list lib (From: Takaaki Naganoya via AppleScript-Users <email@hidden>)
 >Re: [ANN] Piyomaru choose multiple list lib (From: "Stockly, Ed via AppleScript-Users" <email@hidden>)
 >Re: [ANN] Piyomaru choose multiple list lib (From: Takaaki Naganoya via AppleScript-Users <email@hidden>)
 >Re: [ANN] Piyomaru choose multiple list lib (From: "Stockly, Ed via AppleScript-Users" <email@hidden>)
 >Re: [ANN] Piyomaru choose multiple list lib (From: Takaaki Naganoya via AppleScript-Users <email@hidden>)
 >Re: [ANN] Piyomaru choose multiple list lib (From: Jean-Christophe Helary via AppleScript-Users <email@hidden>)

  • Prev by Date: Re: [ANN] Piyomaru choose multiple list lib
  • Next by Date: Re: [ANN] Piyomaru choose multiple list lib
  • Previous by thread: Re: [ANN] Piyomaru choose multiple list lib
  • Next by thread: Re: [ANN] Piyomaru choose multiple list lib
  • Index(es):
    • Date
    • Thread