• 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: Remote Access and Network Setup Scripting problems under OS 9.1 (and 9.2.1)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remote Access and Network Setup Scripting problems under OS 9.1 (and 9.2.1)


  • Subject: Re: Remote Access and Network Setup Scripting problems under OS 9.1 (and 9.2.1)
  • From: Kai <email@hidden>
  • Date: Thu, 13 Feb 2003 20:40:40 +0000

A little earlier, I wrote:

> I've now commented your original script to indicate where it errors OMM -
> and why. However, since its inclusion here is likely to bloat the size of
> this message beyond what the server 'bot considers acceptable, I'll post it
> separately.

Here are my comments, which relate to the lines of your original script
between the 'open database' and 'close database' commands:

========================================

-- this works:
set RA_ActiveConfig to Remote Access configurations whose active is true
--> {Remote Access configuration "x" of [NO-BREAK]
-- application "Network Setup Scripting"}

-- so does this coercion from a single-item list to a reference:
set RA_ActiveConfig to item 1 of RA_ActiveConfig
--> Remote Access configuration "x" of [NO-BREAK]
-- application "Network Setup Scripting"

(*
-- the next line errors:
set RA_ActiveConfigName to name of [NO-BREAK]
Remote Access configuration RA_ActiveConfig
--> get name of Remote Access configuration [NO-BREAK]
-- (Remote Access configuration "x")
-- * Note double reference above to Remote Access configuration... *
--> Network Setup Scripting got an error: -1410, 30014, 11
*)

-- However, this modification works:
set RA_ActiveConfigName to the name of RA_ActiveConfig
--> "x"
-- (But the variable RA_ActiveConfigName isn't actually used in the script)

(*
-- this next line errors:
set current_RA_Status to (Remote Access status of [NO-BREAK]
Remote Access configuration RA_ActiveConfig)
--> get Remote Access status of Remote Access [NO-BREAK]
-- configuration (Remote Access configuration "x")
-- * Note double reference above to Remote Access configuration... *
--> Network Setup Scripting got an error: -1410, 30014, 11

-- this modification would work:
set current_RA_Status to (Remote Access status of [NO-BREAK]
Remote Access configuration RA_ActiveConfigName)
--> get Remote Access status of Remote Access configuration "x"
--> {class:Remote Access status, activity:idle, [etc...]}

-- as does this:
set current_RA_Status to (Remote Access status of RA_ActiveConfig)
--> get Remote Access status of Remote Access configuration "x"
--> {class:Remote Access status, activity:idle, [etc...]}
*)

-- and this:
set current_RA_Status to (status of RA_ActiveConfig)
--> get status of Remote Access configuration "x"
--> {class:Remote Access status, activity:idle, [etc...]}

-- the remaining commands all work (well, almost)...
set RA_State to the activity of current_RA_Status
--> connected

set RA_TimeConnected to the time connected of current_RA_Status
--> 620

set RA_ConnectSpeed to (first word of speed of current_RA_Status) as integer
--> 48000

(* As discussed previously, this last line would error
post-restart/pre-connection *)

========================================

Let me know if you'd like any further details...

--
Kai
_______________________________________________
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.

  • Prev by Date: Re: Remote Access and Network Setup Scripting problems under OS 9.1 (and 9.2.1)
  • Next by Date: Re: MacOS X simple script error
  • Previous by thread: Re: Remote Access and Network Setup Scripting problems under OS 9.1 (and 9.2.1)
  • Next by thread: SUMMARY: Printing w/o interaction?
  • Index(es):
    • Date
    • Thread