How to avoid the "Please Locate" prompt?
How to avoid the "Please Locate" prompt?
- Subject: How to avoid the "Please Locate" prompt?
- From: email@hidden
- Date: Sat, 19 Oct 2002 01:05:17 EDT
I've got 2 remaining "gotchas" that I'd like to hash out of this script, if
possible:
1) Can anyone tell me how I can avoid the "Please locate Network Setup
Scripting" dialog box that Applescript puts up the first time I run this.
Think I'd get in trouble if I hard-coded the path somehow?
2) Can anyone tell me if they get an error when running this under OS 8 or
9? I'd like to make sure this works under as many versions of OS 8/9 as
possible. If running properly, it should return your router address.
tell application "Network Setup Scripting"
try
open database
set currentConfig to current configuration set
set tcpipConfig to TCPIP v4 configuration 1 of currentConfig
set myResult to router address 1 of (TCPIP v4 configuration 1 of
currentConfig)
close database
on error errMsg number errNum
try
close database
end try
error errMsg number errNum
end try
end tell
return myResult
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.