https://github.com/andyatkinson/applescripts
Personal collection of applescripts
https://github.com/andyatkinson/applescripts
Last synced: 9 days ago
JSON representation
Personal collection of applescripts
- Host: GitHub
- URL: https://github.com/andyatkinson/applescripts
- Owner: andyatkinson
- Created: 2012-02-23T04:21:49.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2014-06-13T00:25:54.000Z (almost 11 years ago)
- Last Synced: 2025-05-12T17:14:48.429Z (9 days ago)
- Language: Ruby
- Homepage:
- Size: 107 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Applescripts
#### Opening the VPN dialog from the command line
OS X has a built-in VPN client, the process name is "racoon". We have to re-connect often at work, so this script pops up the UI dialog from the command line. The alias first kills the racoon process, since it may be in a bad state.
### Install
1. `cp config.sample.yml config.yml`
2. From the OS X Network preferences, supply the name of your VPN network name in `config.yml`
3. `chmod +x generate.rb` and `./generate.rb`. This should generate a `openvpn.applescript` file with your VPN network name in it.
4. Copy the contents of `aliases` to your `~/.bash_profile` and source it (e.g. `source ~/.bash_profile`)
5. Now you should be able to run: `openvpn`### Plans
The plan is to add more applescripts. Do you have any applescripts that are time savers?