UI Scripting Internet Connect

Anyone have any idea why this wouldn’t be working? I’m making a script that opens internet connect and imports a config file using the UI scripting. Neither of these examples work but if I open Internet Connect to the point where you enter the file url (Go To Folder) and run:

tell application “System Events”
tell process “Internet Connect”
tell window “Go To Folder”
set value of text field 1 to “testing”
end tell
end tell
end tell

it puts “testing” in the field. So why is it erroring? I tried delaying it but no luck. Thanks in advance for any insight.

~Joe


tell application “Internet Connect”
activate
end tell

delay 2

tell application “System Events”
tell process “Internet Connect”
keystroke “X” using {command down, shift down}
keystroke “I” using {command down, shift down}
keystroke “/” using control down
tell window “Go To Folder”
set value of text field 1 to “testing”
end tell
end tell
end tell


tell application “System Events”
tell process “Internet Connect”
keystroke “X” using {command down, shift down}
keystroke “I” using {command down, shift down}
keystroke “/” using control down
end tell
end tell

tell application “System Events”
tell process “Internet Connect”
tell window “Go To Folder”
set value of text field 1 to “testing”
end tell
end tell
end tell