Find text in webpage and email notification applescript/automator

Hey guys, I'm trying to make (what I think is) a fairly complicated automator/applescript action.  Basically, I'm trying to buy a certain product and it is only available on the webpage at certain times. So I want to create a function that will constantly run in the background on my computer. I want this function to reload a safari page every 10-15 minutes (the one with the store's product page), search for text (the name of the product) and either stop there if the text isn't found or if the text is found, open mail and send myself an email notification so that I'll get it on my phone if the product becomes available. Is this possible at all?

this might do what you're looking for:
on idle
          set pagURL to "http://page.url.com?whatever"
          if application "Safari" is not running then
                    quit
                    return
          end if
          tell application "Safari"
                    set URL of document 1 of window 1 to "http://your.web.address/"
                    delay 5
  -- delay to let page load. 
  -- there are more elegant ways of doing this using do javascript, but this will suffice.
                    if source of document 1 of window 1 contains "search text" then
                              my sendAMail()
                    end if
                    return 900 --fifteen minutes
          end tell
end idle
on sendAMail()
          tell application "Mail"
                    set theMess to make new outgoing message at end with properties {sender:"your name", subject:"some subject line", content:"The message you want to send to yourself", visible:true}
                    tell theMess
                               make new to recipient at end of to recipients with properties {address:"[email protected]"}
                    end tell
  -- send theMess
          end tell
end sendAMail
copy it into the applescript editor, edit in all the correct information about the web page, your email address, etc., then save it as a stay open application.  when run, it will periodically reload and check the page - adjust the number after the return statement to set it to different time periods.
test it first, then when you're ready to use it set visible:false in the line where you make the message, and uncomment the send theMess line.  this will get mail to make and send the message invisibly.

Similar Messages

  • Why am I all of a sudden getting all my text and email notifications in Spanish?  How do I change back to English?  Can't find in profile settings?!

    Why am I all of a sudden getting all my text and email notifications in Spanish?  How do I switch back to English?  I can't find that option in profile or notification settings . . .

        elliew,
    That's a great point! If all other messages and apps on your phone are in English, the preferred language may need to be updated on your account. If this is the case for any of our customers, just reach out to our customer support team at 800-922-0204 or http://vz.to/1vsIHJq .
    BrianP_VZW
    Follow Us on Twitter @VZWSupport

  • My ringer is no longer working for text and email notifications. Only working for phone calls. I have gone through all the settings to see where something is off. Not finding anything. I have tried changing the tone and it just vibrates on everything.

    My ringer is no longer working for text and email notifications. Only working for phone calls. I have gone through all the settings to see where something is off. Not finding anything. I have tried changing the tone and it just vibrates on everything.

    Ok so I happened to figure it out while on the phone to apple support. Even though the guy was very nice, I think I knew more than him! He was explaining very basic resolution principles I played about. I had the second option in displays resolution. All I did was unplug the HDMI cable, click on 'best for display' then plugged the HDMI in and my resolution on the normal monitor changed to the normal blue, then went black momentarily and then changed to a strange resolution but another window appeared that said SONY BRAVIA HDMI at the top! Hey presto! Don't know why it didn't do it yesterday - I probably left the HDMI cable in or something! Oh well. Problem solved!

  • Why can't I set my downloaded .dm ringtones as text and email notifications?

    I have an HTC Incredible 2;  I paid for and downloaded several ringtones from the Verizon store, two of which I wanted to specifically use as the text and email notification sounds.  I then had the already discussed problem of not being able to find the newly downloaded ringtones immediately, but from the postings on here and the Adriod forums, I followed the directions to set up the folders titled Ringtones, Notifications, and Alarms on my sdcard, and moved the downloaded ringtones into their respective folders.  When I opened up the Personalize menu, under Sounds I was immediately able to find the ringtones I'd placed in the ringtone folder, but my phone wouldn't recognize the ringtons I'd placed in the Notifications folder.
    I downloaded the app Zedge, downloaded specific Notification sounds (.mp3, and they work).  I also downloaded .mp3 ringtones and then moved them into the Notifications folders, and THAT worked.  The problem seems to be that these are .dm files?  Is my phone unable to read .dm files as Notification sounds?  Or is there something I missed?  Something else I can do?
    I looked all over for software that will convert .dm files to .mp3, found a suggestion calling for the deletion of a couple of the lines of code from within the .dm file using Notebook ++, but that didn't work.  I don't remember seeing anywhere in the store that these ringtone files come in the protected .dm filetype; that many players will not be able to play them, and that I won't be able to use them for notification sounds?
    Ay one have any suggestions?  Verizon: am I doing something wrong?
    Thanks in advance for any help.

    Usually when you purchase ringtones from the Verizon store, you can only use them as ringtones. Since you have a smartphone, an app would be the best bet. You can find almost any song you're looking for in a free ringtone app, there's no need to purchase them.

  • Receiving text and email notifications while on call

    While I'm on a call, I receive text and email notifications (by a sound and a buzz). Is there a way to shut this off, as it's annoying when there are multiple messages coming through.

    Sure; go to settings > sounds and set "new text" and "new VM" to off.
    Of course this turns them off ALL the time; your only choice ( I am sure there is a hack for this oversight out there somewhere, though)
    This is not a business class smartphone ; its an iPhone.

  • AcroPDF in VB6 - Find text in PDF and print that page.

    Okay, so I'm certain that this question has been asked and answered a hundred times, but for some reason my googling skills are seriously failing me today...
    I have a legacy application built in VB6 that generates PDF documents of a particular form letter.  Each PDF contains all of the form letters that were printed on that particular day.  I actually have it all working rather decently, but something came up a little while ago that set me on a new programming obsession.  I want to enable the following functionality from my application:
    The user provides a text string that should be unique among all pages of all PDF's (customer ID).
    The application then finds the PDF that contains that text string and identifies which page number contains that text string.
    Finally, send only that page to the printer.
    Currently I can easily create, display and print the PDF from my application.  While the creation of the document is done through a third-party reporting system, all display and printing functions are basically handled using AcroPDF.dll.  Going through the available properties and methods for an AcroPDF object, I see that I can tell it to print only specified pages, which gives me the last part of my requirements, and I've got the user input part down pat.  I'm just totally stumped at finding a solution for "step 2".
    Any suggestions, ideas or comments would be greatly appreciated.  I'm kinda tired of banging my head against a wall.  Thank you for your time.

    If you are only using Adobe Reader, then that feature isn't available.
    If you have Adobe Acrobat, then you have a few options.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Wed, 26 Oct 2011 08:15:12 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: AcroPDF in VB6 - Find text in PDF and print that page.
    AcroPDF in VB6 - Find text in PDF and print that page.
    created by GHosaPhat<http://forums.adobe.com/people/GHosaPhat> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3991293#3991293

  • Facebook Notifications and email notifications on ...

    Hi
    Is that possible Facebook Notifications and email notifications on sleeping screen nokia 808 like it had on N9..
    On my 808 it shows only msgs and miscalls....any fix??
    Thanks

    not possible unless the app supports that behaviour. but email notifications and on notification lights has been broken on Symbian for a while, and as Symbian is in maintenance mode, is unlikely to see a fix, possibly ever.

  • How can I find text-item description and content in database?

    I make "Actual news" region with text and simple image items.
    With "Custom Search" autoquery I make news portlet with 10 latest news.
    But I will make with PDK-Java discussion portlet, in which users can read and write about last published (last created text item display name and content) news.
    My questions:
    - How can I find text-item description and content in database?
    - How I can sort text-items to find latest created in my region?
    I have Portal R2
    Thanks in advance.
    Cheslav

    I am sorry. The following are the related tables.
    WWV_TEXT
    WWV_TEXT_BLOCKS
    WWV_TEXT_BLOCK_USAGES
    WWV_USER_TEXT_BLOCKS
    WWV_USER_TEXT_BLOCKS$
    WWV_USER_TEXT_BLOCK_USAGES
    WWV_USER_TEXT_BLOCK_USAGES$
    May be you want to browse WWV_TEXT which is the core table.

  • Procedures and Email Notifications

    boldEN*bold*
    Hi everyone!!
    In my BPM development, i'm trying to automatize the email notifications, based on due process periods. Also, I need to inform, based on the delay, some other participants that escalates the alarm message.
    Is it possible to do it using an "E-Mail Notification" component that can be reused during all the process, even that the interval conditions and informed users varies upon each activity.
    Is there another way to solve it?
    Thanks
    boldSP:*bold*
    Saludos a todos!
    En mi desarrollo BPM requiero automatizar el proceso de envio de email, al caducar ciertas actividades. Basado en ello, el tiempo de caducidad varia de acuerdo a cada actividad y al usuario, ya que varian tanto los intervalos de aviso, como los correos y su escalamiento en caso de demoras mayores a lo solicitado.
    Pienso que es posible tomar un procedimiento especializado que permita ser reutilizado en este y otros proyectos, a pesar de que requiera parametrizar tanto los usuarios "base" y "escalados", como los intervalos de alarmas, durante el proceso.
    ¿ Existe otra forma de realizarlo?
    Gracias,

    I think I understand what you're after. I think you want to use the same escalation logic for all of your processes and instead of embedding this in every process you want something reusable. If this is not the case, read no further.
    While you can do this, there are still going to be 5 things each process would still need to have inside of them:
    <li> your process would need to set the "deadline" predefined variable to the intial timeout (2 hours in the future in your example)
    <li> your process would need an Exeption Handler needs to be added with an Exception transition set to "Instance Expiration"
    <li> your process would need an Integer instance variable "alertLevel" to keep track of the current level
    <li> your process would need a String instance variable "currentlyAssignedTo" to keep track of who's supervisor you want to notify
    <li> your process would need an Automatic activity with one line of logic inside it.
    You could have the Exception transition leaving the Exception Handler activity go to a subprocess using a Subflow activity. This subprocess would send the emails, determine the new deadline interval, determine the new priority of the instance, look up the currently assigned user, manager and supervisor's email addresses and send the email(s). The subflow would have two input argument variables (alertLevelArg and currentlyAssignedToArg). In the Begin activity, these arguments would be mapped to corresponding instance variables. Inside this subprocess there would be an automatic with the logic to send the email to the user / manager / supervisor based on the alertLevel instance variable. This subprocess would pass back out through its output argument variables the new alertLevelArg, and new deadline (a time argument variable set to some time in the future based on the new alert's level).
    Once the instance in the called subprocess completes, the output arguments need to be mapped to the original process's "alertLevel" and "deadline" variable. From the Subflow activity, you'd have an unconditional activity that flows into an Automatic activity via an unconditional transition. This automatic activity would have the single line of logic "action = BACK" so the instance is sent back from the Exception Hanldler's flow back to the activity inside the process it was in when the Instance Expiration exception occurred.
    Avoid hard coding the values of "2" and "5" and "8" for the number of hours to have elapse inside your logic. Instead make them business parameters capable of being edited by an business owner.
    Dan

  • Subject: Integrating SMS and Email Notifications

    Hi All,
    I'm trying to integrate our email notification system with some sort of SMS messaging system and I've a couple of questions
    1. Is it free to send the SMS from my java application...
    2. If I'm using smslib and GSM modem......who pay's for the SMS message here in the United States.....I know in Ireland its only the receiver who pay's but here it's both the sender and receiver pay when it's mobile to mobile
    3. This will be my first time doing anything like this, so and advice, code snippets or pointer would be really appreciated
    Thanks in advance
    f

    SMS email gateways are usually free to send to, but be aware that they may shut you off if you spam users.
    As for the recipient, I think the SMS goes against the recipient's allowed number of messages in his calling plan, but that really depends on the nature of the agreement between the recipient and the telco. If it goes over the allowed number of messages for the recipient, then he will be charged whatever rate is in the agreement.

  • Oracle iLearning 5.0 on Windows and email notifications issue

    Hi!
    We are upgrading from iLearning 4.3 to iLearning 5.0 on Windows 2000 server and I have a question related to that.
    iLearning 5.0 is certified for Windows.
    The accompanying release.txt states that:
    --'Email', 'Email and Web' notifications options for Learner Rating and Authorized Enrollment/Unenrollment are not available on Windows platforms. Only web-based notifications should be used.
    Through a Technical Assistance request (TAR Number 4439000.992 ) I've found that this problem is due to the use of Workflow 2.6.2 stand-alone which requires sendmail, which is not available on Windows.
    This worries me because I want the system to be able to:
    * notify admin when authorization is needed for enrollment
    * notify course participants about changes or a cancelled course.
    * Certification reminder and expiration
    * Assessment submission
    * Notification to all learners currently enrolled in an offering
    The suggested workaround from Metalink is to use a Unix/linux server.
    Metalink suggestion:
    "you can set up a notification mailer on UNIX to work with stand-alone Workflow
    hosted on Windows. The following MetaLink article is a step-by-step guide on how
    to do this: Note:254973.1 How To Configure UNIX Sendmail To Work With Oracle Workflow Running On Windows
    This would be useful if UNIX was an option for me. It is not.
    I have some questions:
    1)Can I use WorkFlow 2.6.3.5 on windows with iLearning 5.0?
    I know Workflow 2.6.3.5 is working with MS Exchange.
    2)Can I use sendmail in some form or shape?
    IIS 5.0 (or 4.0) has a mail gateway that can be utilized by a sendmail program.
    Sendmail software for windows:
    http://www.glob.com.au/sendmail/
    http://www.indigostar.com/sendmail.htm
    http://www.ntsendmail.com/
    http://www.windowsitpro.com/Windows/Article/ArticleID/5289/5289.html
    Has anyone tried any of theese?
    I'd like to make a suggestion to my IT department on how to solve this issue.
    Thanx for any help in advance :-)
    Kristian Amlie, Bergen Norway

    There are a couple of patches available that allow a customer to upgrade their Oracle iLearning database to 10g and with that, upgrade Oracle Workflow to version 2.6.3 which supports email notifications through workflow on windows.
    Patch #s are 4321769 and 4485520
    Thanks!
    Scott

  • Project Server 2013 and email notifications

    Hi,
    Newbie's question: is it possible to set email notifications in Project Server 2013 without Exchange Server, just with gmail or hotmail? 
    Is there somewhere a document for that?
    Thanks

    Hi Robert,
    Here is the
    documentation for configuring email notifications. I might be wrong and it has to be tested but the destination email could be any email address, you just have to enter a gmail or hotmail address in the resource
    email field.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • FTP, Completed Abnormally and Email notifications

    We currently have our email notifications set to email us for when all jobs complete abnormal which works perfectly.  I am having trouble with this one group of jobs that is supposed to run every 2 hours.  It starts with an Put FTP job and sometimes there is a file and sometimes there is not.  A user puts files out there when needed.  When there is no file it a completes abnormally.  There are about 8 jobs out there so we end up getting bombarded with emails and no one will pay attention if we leave it like this.  I know we can change the complete abnormal by having it scan output but then the next job which does a copy kicks off. If there is no file out there that one would then fail and send email and then the delete would fail and so on.  I have tried setting up a file dependency but had issues with the delete because it was saying it was still being used.  I just don't know if someone has had a work around or any ideas on how to make this work for us.  We don't want to get 25 emails a day and file dependency is just not working for this group.  Any ideas?

    Here is the way I set up some of my groups: I have 1 job that is scheduled and checks if a file exists; if the file exists, it will trigger, on normal completion, a group (which is not scheduled). If the file does not exist, it will complete abnormally and it will not trigger anything because I don't see why I should have a group scheduled to run if there is a possibility that a file might not be present. So on your job you can set up 2 kinds of events: one, completed abnormally if the file is not found - I normally set the status to Skipped when that happens and here you can set up an email notification; two, completed normally then submit your group.

  • Making checkbox selections/options visible on the request details and email notification details -FIM 2010 R2

    How do I make the checkbox selections made by users in FIM RCDC visible on the email notifications and on the request details on the request in the portal?
    Phina

    Congrats to Wim on a great article!
     Forefront Identity Manager Technical Guru - October 2014  
    Wim Beck
    Event Driven Scheduling of Forefront Identity Manager (FIM) using a Windows Service
    Ed Price: "Fantastic job on formatting, the code, and all the explanations! The TOC and References are a nice touch!"
    PG: "Nice innovative solution, that is a nice add-on to existing solutions. " 
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Calendar triggered sending of emails via AppleScript / AutoMator

    Let us say that I have groups defined in my Contacts app.
    I want an AppleScript / Automator workflow that will send a predefined text (with placeholders for first name) a predefined number of hours (say 12 hours) before a calendar event / date (say Thanksgiving) one by one to each person in a specified group.
    I guess I could spend a few hours building this, but it sounds like something someone must have done before.
    Any pointers?
    Thanks.

    Sorted it. I need to change addRecipient to setRecipient.

Maybe you are looking for

  • Report showing IQ03 Details

    I am looking for a report that shows IQ03 details in a report view. The details I need from this transaction are: Material # Serial # Asset # System Status Status with Status No. Status w/o Status No. Last Event Last Event Date Does anybody know of a

  • Why we need oracle database reboot to put database in  archivelog mode?

    I know how to enable archivelog mode, but what is the reason that to enable archive log we need database restart. which process forces to do that.

  • How do I send the same email to multiple addresses from my address book?

    I need to send the same email to many people on a regular basis. I especially entered all my contacts in the address book. Now I find out that I can only click on one of my contacts email address to create a new message. But I need to send 1 email to

  • Connector params for ABAP Sneak peview

    Hi, I am trying to create a System in Portal ( Sneak Preview 7.0) to connect to NW ABAP Sneak Preview 2004 which is installed in the same machine. I created a 'SAP Dedicated application server' system and created an alias. When I do the Connection te

  • All my songs are at different levels

    when i hook my nano to the boat system each song has a different volume so im constantly changing the volume settting, how can i get a base volume setting ?