AppleScript Studio Help
AppleScript Studio Help
- Subject: AppleScript Studio Help
- From: "Kinsella, John R." <email@hidden>
- Date: Tue, 08 Jan 2002 14:01:43 -0600
All,
I'm attempting to create a script that will ping, and if the ping is
successful traceroute Ip's at or institution in order to clean up our badly
out of date Ip tables. (I know, we're working on going DHCP) In anycase, I
wrote an AS that works just fine and thought, well, maybe I'll just use it
in AS Studio and build a nice little front end to it. But I've seince run
into a roadbloack and could use some help.
this is what i wanted to do:
on clicked
tell window "Window"
set startNum to contents of text field "startingIP"
set endNum to contents of text field "endingIP"
set theSubnet to contents of text field "theSubnet"
end tell
repeat until startNum is greater than endNum
--perform ping and traceroute finctions here
set startNum to startNum + 1
end repeat
end clicked
but when I do so, I continually get InternalScript Error (8) and the error
winding in project builder says "[712] *** -[NSshortNumber length]: selector
not recognized"
what am I missing? What can't I simply add 1 to a variable? if I display a
dialog with that variable before I attempt to add 1, it displays correctly,
so I know the variable is being set, but for some reason the attempt to add
1 is causing an issue. Please help!!
>
John Kinsella
>
-------------
>
"The surest way to corrupt a youth is to teach him to hold in higher
>
regard
>
those who think alike rather than those who think differently."
>
--Nietzsche