|
|
Make a launchd agent instead
Use Lingon to make a launchd agent that watches the system.log file. Have a shell script that sees if the change includes the phrase "posting notification com.apple.system.config.network_change"
If it does, the shell script can do whatever else you want, including run osascript to do some AppleScript commands. Here's an example system.log watcher shell script:
On the line after the "echo...Network Changed" line, include the commands you want. The easiest way to do that if you know AppleScript is to make a script file and just call it like this:
Post here if you need more help getting that to work.--- |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|