Posts Tagged ‘wireless’

Share internet (via wifi Airport) applescript

Sunday, July 17th, 2011

Here’s an applescript we’ve been using at home to share the ethernet internet connection between our two laptops. The computer with the ethernet cord plugged in runs this script, then the other computer can connect to the wireless network of that computer’s name and share its internet connection.


tell application "System Preferences"
	activate
end tell

tell application "System Events"
	tell process "System Preferences"
		click menu item "Sharing" of menu "View" of menu bar 1
		delay 2
		tell window "Sharing"
			if value of checkbox 1 of row 11 of table 1 of scroll area 1 of group 1 is 1 then
				click checkbox 1 of row 11 of table 1 of scroll area 1 of group 1
				click checkbox 1 of row 11 of table 1 of scroll area 1 of group 1
			end if
			
			
			click checkbox 1 of row 11 of table 1 of scroll area 1 of group 1
			delay 1
			if (exists sheet 1) then
				if (exists button "Turn AirPort On" of sheet 1) then
					click button "Turn AirPort On" of sheet 1
					delay 1
				end if
				click button "Start" of sheet 1
			end if
		end tell
	end tell
	tell application "System Preferences" to quit
end tell

Downloads

ShareInternet.app (zip) Here’s a version wrapped into an app with a nice little icon so you can put it on your dock.

Sticky or wobbly space bar on old, white apple keyboard (not working/broken)

Friday, September 18th, 2009

I recently posted about setting up an (old, white, wireless, bluetooth) apple keyboard.

old white apple keyboard

When I bought this keyboard used, I actually had a problem that I’d had with a previous apple keyboard of the same style. In the past occasion I believe now that I accidentally solved the problem. Now I have found the solution.

The problem is that the space bar is “sticky”. When you press it right in the center it works fine but if you hit on either the far right or left side it stays stuck in or at least feels like it’s clicking into place rather than smoothly pressing and releasing.

I tried cleaning it and blowing in it to no avail. Finally I figured out what was going on. If you pop off the space bar (just pull it off gently holding both left and right sides), you will see that there is a little metal bar attached underneath. This bar needs to be attached with the long part of the bar hooked into the space bar itself and the two short ends attached to the keyboard. When aligning to attach the space bar to the keyboard, first attach the long part of the bar to the space bar. Hold the space bar so that when it is attached the part where the long bar meets the actual space bar is at the top (far side from you), with the little ends of the bar pointing at you.

Here’s a video to explain it better:

MacBook Pro won’t pair with old, white apple wireless bluetooth keyboard

Saturday, September 12th, 2009

Recently purchased a used wireless apple keyboard (the old white bluetooth ones).

Old white wireless apple keyboard

I had a lot of trouble pairing it with my macbook pro, running mac os x 10.5 leopard. Using the Bluetooth Setup Assistant, I would hit a wall. It seemed that it was able to “see” my keyboard. It showed up as “found” but then when I chose to pair with it, I got stuck with the message: ‘The pairing attempt was unsuccessful. Make sure your keyboard is in range of this computer, turn on and “discoverable.” When ready, click Continue and try again.’ And beneath that “Unable to pair with your keyboard. Click Continue to try again.”

Unable to pair with keyboard

Continuing to try again was useless, so instead I went back to the “Select Device Type” screen of the assistant. Instead of choosing “Keyboard”, I chose “Any device”. It saw my keyboard, but before selecting it I checked under “Passkey options…” to make sure “Use specified passkey” was checked. Then after I selected the keyboard, it sat on “Gathering additional information about…” but eventually finished. I was prompted for a pass key, which I entered and then viola the keyboard was recognized.