apple script mail problems
James Sentman
james at sentman.com
Wed Aug 5 07:01:42 EDT 2020
Good morning Sal,
First of all this script is awesome! :) I LOVE IT! I don’t have a speech output from XTension right now into the house where anyone could hear it, but I think I need to set that up ;) You should also get an Alexa and add:
say “alexa, play the final countdown volume 10”
or something else ;) I’m also curious about the PlaySound app. XTension can do that now by itself and gives you lots of options for where to send it and so forth. You can drop that mp3 file into the Sounds folder that is created in the same folder with XTension (or if XTension is in the Applications folder then it is created in your Documents/XTension Support folder) and then use the “Play Sound” verb like this: http://www.machomeautomation.com/doku.php/dictionary/human/playsound <http://www.machomeautomation.com/doku.php/dictionary/human/playsound>
But thats besides the point of the email not working. An error 28 from the email system is a timeout. I need to expand those errors a bit as just saying 28 is not immediately helpful without sending me an email first to look it up… Added to my list.
Can you send an email from Mail.app on that machine with the same SMTP settings? If not then it’s a connection to the SMTP server that is failing for whatever reason. If you can then it’s something different either in XTension’s email settings or in how I’m handling the encryption or something under the hood.
If it works in Mail but not in XTension please go into the Email Setting tab of XTension’s preferences and double verify that all the addresses and ports and user/password settings are the same as in Mail’s SMTP setup.
If there are no obvious differences can you please email me, off the list, a screen shot of the XTension email preferences screen and the SMTP server screen from Mail that shows the server address and ssl settings and such? It may be that the smtp libraries in XTension are refusing to connect to the server due to it running an older ssl system or something like that. I don’t need your smtp passwords or anything like that, just the screen shots with the user name will be enough to be getting started with.
Thanks,
James
> On Aug 3, 2020, at 2:44 PM, SALVADOR CAMPOS <scampos at me.com> wrote:
>
> Here is my on script for my motion sensor:
>
> -- EntryHallMotion -----
> try
> if ((time delta of ("EntryHallMotion")) is greater than 1 * minutes) then
>
> if (status of "somebodyHome") is false then
>
>
> -- 1 --
> set myList to {" Busted!, Police have been notified that someone is in the entry hall..", ¬
> "Hey cox sucker get the fuck out of this house ", ¬
> "Facial recognition not found in database cross checking with F.B.I. and local database ", ¬
> "Police have been notified ", ¬
> "I hope you realize jail is going to be hell, so get out now! Before the cops get here!", ¬
> "Your a mother fucker", ¬
> "Bitch, you have done fucked up now!", ¬
> "Your ass is mine, I have you on four cameras now"}
> set theItem to item (random number from 1 to (count of myList)) of myList
> say theItem voice "Alex" volume 0.5
> --2--
> set myList to {"get out of my house fucker", ¬
> "You are so fucked now", ¬
> "Fuck you", ¬
> "You have been identified clearly on my cameras", ¬
> "Not! Going to get away this time", ¬
> "Fuck you!", ¬
> "How does it feel to be so fucken busted?", ¬
> "You are stupid and so fucked", ¬
> "you little bitch, I hope you like getting your ass rammed in jail"}
> set theItem to item (random number from 1 to (count of myList)) of myList
> say theItem voice "Susan" volume 0.5
> -- then execute--
> set theItem to item (random number from 1 to (count of myList)) of myList
> say theItem voice "Heather Infovox iVox HQ" volume 0.5
> tell application "PlaySound"
> play "MacintoshHD:Sounds:camera-shutter-click-01.mp3" repeat 1
> end tell
> -- Mail Alert--
> --tell xGlobalScript "email" to SendAlert("ALARM: EntryHallMotion activated", " EntryHallMotion activated at " & ((current date) as text))
>
> end if
> end if
> turnoff "EntryHallMotion"
>
> end try
Thanks,
James
James Sentman http://www.PlanetaryGear.org http://MacHomeAutomation.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20200805/73f9fae9/attachment.html>
More information about the XTensionList
mailing list