use applescript to order pizza online?

Discussion in 'Mac Basics and Help' started by steezy1337, Jun 19, 2011.

  1. steezy1337 macrumors 6502

    Joined:
    Dec 29, 2008
    Location:
    Carlisle, UK
    #1
    i had a funny idea while i was at work of creating some kind of script that would be able to open the website for a pizza company, select my favourite pizza, order it then pay for it all without me having to go through it manually. would this actually be plausible as i didn't think about how it's actually going to navigate the webpage to buy my pizza?
     
  2. Angelo95210 macrumors 6502a

    Angelo95210

    Joined:
    Jan 7, 2009
    Location:
    Paris, France
  3. steezy1337 thread starter macrumors 6502

    Joined:
    Dec 29, 2008
    Location:
    Carlisle, UK
    #3
    huh?
     
  4. Dr Kevorkian94 macrumors 68020

    Joined:
    Jun 9, 2009
    Location:
    SI, NY
  5. phySi0 macrumors member

    Joined:
    Jun 19, 2011
    Location:
    You don't want to know!
  6. steezy1337 thread starter macrumors 6502

    Joined:
    Dec 29, 2008
    Location:
    Carlisle, UK
    #6
    does anyone have an idea of how i'd do this? my first guess is that i'd have to find the names of the buttons or text boxes that i'd want it to be clicking once on the website
     
  7. Jolly Jimmy macrumors 65816

    Jolly Jimmy

    Joined:
    Dec 13, 2007
    #7
    If it's even possible it's going to take a lot of trial and error.
     
  8. steezy1337, Jun 20, 2011
    Last edited: Jun 20, 2011

    steezy1337 thread starter macrumors 6502

    Joined:
    Dec 29, 2008
    Location:
    Carlisle, UK
    #8
    i've got it to open the website so far, but my first hurdle is getting it to type my post code into the search box then run the search. i've looked at the source code and it looks like alot of it is javascript, can AppleScript work with javascript?

    EDIT:
    i've managed to get past the post code search now, but to in order to choose the right take-away restaurant there's a selection box which i think is in a table, i've found the table in the source code but i'm not sure how i can make the AppleScript select the right option
     
  9. dduggan macrumors newbie

    Joined:
    Jan 31, 2009
    #9
    And possibly a lot of unwanted pizzas on your front door! :eek:
     

Share This Page