• 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
RE: Newbie; scripting additions missing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Newbie; scripting additions missing?


  • Subject: RE: Newbie; scripting additions missing?
  • From: "Peter Suter" <email@hidden>
  • Date: Thu, 4 Jul 2002 19:23:22 +1000

I didn't, but now that I have (thanks), does this look right?

tell application "Network Setup Scripting"
close database
open database
return AppleTalk active of AppleTalk options
close database
end tell

while I was setting this up I managed to leave the database open and ran
into an error "can't open.. already open"
So, is there any penalty for closing the database before opening it?

-----Original Message-----
From: email@hidden
[mailto:email@hidden]On Behalf Of Emmanuel
Sent: Thursday, 4 July 2002 5:46 PM
To: AppleScript-users list
Subject: Re: Newbie; scripting additions missing?


At 9:31 AM +0200 3/7/02, Peter Suter wrote:
>
>It seems like something is not turned on for Network Scripting - any ideas
>what?

It is a common mistake to forget the "open database" ... "close database"
wrapper which makes things possible for NSS. Did you do that?

Emmanuel
_______________________________________________
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.
_______________________________________________
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: Newbie; scripting additions missing?
      • From: Christopher Nebel <email@hidden>
References: 
 >Re: Newbie; scripting additions missing? (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Intercepting or preventing a menu choice
  • Next by Date: Re: Portfolio - close a catalog?
  • Previous by thread: Re: Newbie; scripting additions missing?
  • Next by thread: Re: Newbie; scripting additions missing?
  • Index(es):
    • Date
    • Thread