PDA

View Full Version : Please help. (AppleScript for Safari typing)




Tuxedo Man
Sep 28, 2007, 11:48 PM
What's a good command I can use in AppleScript to get my computer to type something in a field in safari?:confused:



richard.mac
Sep 29, 2007, 10:20 AM
have a look in /library/scripts. there are URL scripts that you can check out that will help you.

HINT

property target_URL : "http://_______.com/"

open location target_URL

Tuxedo Man
Sep 29, 2007, 02:00 PM
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

mkaake
Oct 1, 2007, 10:47 AM
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

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