Become a MacRumors Supporter for $25/year with no ads, private forums, and more!
  • Did you order new AirTags? We've opened a dedicated AirTags forum.

GerritV

macrumors 65816
Original poster
May 11, 2012
1,411
973
Like the title says...

Looking for a way to script the following:
- open Netextender
- tab to the 3rd field in the dialog box
- enter a text value
- confirm

My questions:
- do I use AppleScript or Automator, perhaps TextWrangler?
- what would this applescript look like, in rough syntax?

TNX
 

aarond12

macrumors 65816
May 20, 2002
1,119
70
Dallas, TX USA
Automator will be your easiest way to make your AppleScript. Choose the application on the left, then the function, and drag it to the right side. It takes a bit of searching for specific functions (especially the Finder functions), but with a little practice, it's quite useful and fun!
 
Comment

kryten2

macrumors 65816
Mar 17, 2012
1,000
61
Belgium
If the attached tumbnail is the right application and the red arrow points to the right field then try this :

Code:
activate application "NetExtender"
tell application "System Events"
	tell process "NetExtender"
		-- insert GUI Scripting statements here
		delay 3
		keystroke tab
		keystroke tab
		keystroke "your password"
		click button "Connect" of window "SonicWALL NetExtender"
	end tell
end tell
 

Attachments

  • Picture 2.png
    Picture 2.png
    65.8 KB · Views: 198
Comment

GerritV

macrumors 65816
Original poster
May 11, 2012
1,411
973
@ aarond12
Thanks for pointing me to Automator. I got as far as to start the app, but from there on I recorded my actions and in the end got it to work. From what I've read so far, perhaps NetExtender doesn't support much more.
There's a long road ahead of me I'm afraid :)

@kryten2
Your script is exactly what I was after, so thanks! It really helps me to study scripts like yours, trying to understand the syntax. BTW, I'm in Belgium myself.

Again, thank you both.
 
Comment
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.