Applescript help.
Here is what I am needing, I can't seem to figure it out.
I need a script that runs these keystrokes in Safari. That's it. I tried letting the editor record, but it won't.
tab
tab
tab
tab
tab
tab
tab
tab
tab
space
tab
space
tab
space
tab
space
tab
space
tab
space
tab
space
tab
space
tab
space
tab
space
tab
I need a script that runs these keystrokes in Safari. That's it. I tried letting the editor record, but it won't.
tab
tab
tab
tab
tab
tab
tab
tab
tab
space
tab
space
tab
space
tab
space
tab
space
tab
space
tab
space
tab
space
tab
space
tab
space
tab
Comments
tell application "System Events"
tell application process "Safari"
activate
try
repeat 9 times
key code 48 -- this gives you a tab
end repeat
repeat 10 times
keystroke " " -- this gives you space
key code 48
end repeat
on error
display dialog "I made a boo-boo." buttons {"Doh!"} default button 1
end try
end tell
end tell
set theWebSite to "http://www.apple.com"
tell application "Safari" to open location theWebSite