Please help. (AppleScript for Safari typing)

Discussion in 'Mac Programming' started by Tuxedo Man, Sep 28, 2007.

  1. Tuxedo Man macrumors newbie

    Joined:
    Sep 28, 2007
    Location:
    Orange County, CA
    #1
    What's a good command I can use in AppleScript to get my computer to type something in a field in safari?:confused:
     
  2. richard.mac macrumors 603

    richard.mac

    Joined:
    Feb 2, 2007
    Location:
    51.50024, -0.12662
    #2
    have a look in /library/scripts. there are URL scripts that you can check out that will help you.

    HINT

    Code:
    property target_URL : "http://_______.com/"
    
    open location target_URL
     
  3. Tuxedo Man thread starter macrumors newbie

    Joined:
    Sep 28, 2007
    Location:
    Orange County, CA
    #3
    Ok but I already have the page I want open I just want my computer to type in something in a field that's on the web page
     
  4. mkaake macrumors 65816

    Joined:
    Apr 10, 2003
    Location:
    mi
    #4
    You need to use UI scripting for something like that. You'll want to download this:

    http://prefabsoftware.com/uibrowser/

    And use it to find what element you're going to type in. Fantastic thing about that program (it's a 30 day trial) is that once you've found the element you want to do something with, you can have it create tell blocks to paste directly in to script editor...
     

Share This Page