• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to avoid the "Please Locate" prompt?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: How to avoid the "Please Locate" prompt?
      • From: Rob Jorgensen <email@hidden>
  • Prev by Date: Re: Folder Actions get wierder by the day
  • Next by Date: Re: How to avoid the "Please Locate" prompt?
  • Previous by thread: Re: Folder Actions get wierder by the day
  • Next by thread: Re: How to avoid the "Please Locate" prompt?
  • Index(es):
    • Date
    • Thread