Re: How work around TCP/IP looongstanding bug (or Location Manager?)
Re: How work around TCP/IP looongstanding bug (or Location Manager?)
- Subject: Re: How work around TCP/IP looongstanding bug (or Location Manager?)
- From: Jon Pugh <email@hidden>
- Date: Fri, 3 Aug 2001 16:21:47 -0700
At 1:45 PM -0700 8/3/2001, David B. Gustavson wrote:
>
A better way would be if there is a Location Manager Module that can run a script, that script could be used to clean up after the TCP/IP configuration change (and possibly to drive the change). Is there such a module?
I have actually written a Location Manager module which runs a script, but I don't really want to distribute it because I can't rebuild it and fix bugs and there are a couple which will affect novice users.
Besides, you should be able to use the Auto-Open Items module to run a script application, so my module isn't strictly necessary.
In fact, you can create a script application like so:
on run
set s to path to scripts folder as string
set s to s & "Location Scripts:"
set ss to list folder s
repeat with f in ss
set fs to s & f
set sf to load script fs
tell sf to run
end repeat
end run
This would run, when you switched locations, all the scripts in the specified folder (in this example from the folder "Location Scripts" in the "Scripts" folder of your system folder.
This way you could use a single script app to run a bunch of script files. I use a similar trick to run Startup Scripts when I launch.
Jon