Change keyboard modifier keys automatically on OSX with Applescript

  

Here is an elegant solution to a common problem which has troubled a large number of otherwise happy Macbook, and Macbook Pro users over the past few years. The scenario is this: you use your shiny apple laptop both at the office and at home. At the office, you use whatever accessories the friendly IT staff has provided you. This generally includes a generic windows based keyboard, cute little windows key and all. For those not familiar with the problem this creates, don’t bother reading the rest of this - I promise it will be boring. If this is something you have encountered on the other hand, I don’t need to tell you that the switching of Apple key and Option key (alt key and windows key on a windows keyboard) is enough to drive a mac user crazy.

More after the break.

Technorati Tags: , ,



Fortunately, Apple has given us a relatively easy way of switching the functionality of these two keys, allowing a windows keyboard to act just like your built in keyboard, or an apple external keyboard. Under System Preferences -> Keyboard and Mouse -> Keyboard, you will see a button on the lower left called “Modifier Keys…” Clicking that will present you with an opportunity to manually switch these keys around. If you always use the same keyboard, or never plan to use both the external windows keyboard and the internal keyboard on your laptop, you are done. Those of us that actually use the laptop as, you know, a mobile computer are still left with frustration anytime we switch environments and keyboards. Put simply, it sucks to have to go through this process every time you move your machine.

Applescript to the rescue! Lance Ball has written a very handy Applescript which will quickly and cleanly open your system preferences and switch the behavior of these two keys. The script (see below for the code) can easily be run manually whenever there is a need to flip-flop these keys. I wanted to take this just one step further and have complete automation of this process. Basically I want my computer to know where it is, and change it’s behavior accordingly without me having to think about it. Fortunately, there is a wonderful open source package available that provides exactly this functionality (and a lot more.) By using MarcoPolo on my macbook pro, I can setup a number of rules which the software can use to actively determine the machines current location. Once the location has been successfully determined (generally only takes a few seconds) a number of actions can be executed including changing networking settings (ie. enabling a proxy) and pursuant to the topic of this post, running an applescript.
I’ve set this up and it works wonderfully. Upon opening the computer in my office, MarcoPolo detects it’s location and automatically sets up my keyboard preferences accordingly. When I unplug for the day and head home, it again automatically understands that I’m not longer connected to that keyboard and reconfigures my system back to the standard Apple configuration - very nice!

The following is the unmodified script written by Lance Ball. I’m reposting it here as his website is currently under re-construction and the code is unavailable for download there. I have personally modified this script a bit to work more elegantly with the MarcoPolo setup described above, but wanted full credit for the code to go to Lance.

UPDATE Feb 2008: The following code applies to OSX 10.4 and earlier only. Updated applescript for 10.5 can be found below (here) thanks to commenter Joe Thomas.

-- **********************************************************************************
-- Utility script to switch keyboard mapping for Command and Option keys.
-- Useful when you have a PC external keyboard that you use in one location, but
-- at other times you are using the builtin laptop keyboard or an Apple keyboard.
-- Author:  Lance Ball (lanceball - at - mac - dot - com)
-- **********************************************************************************

-- Open System Preferences
tell application "System Preferences"
	activate
	set current pane to pane "com.apple.preference.keyboard"
end tell

tell application "System Events"
	-- If we don't have UI Elements enabled, then nothing is really going to work.
	if UI elements enabled then
		tell application process "System Preferences"
			get properties

			-- Open up the Modifier Keys sheet
			click button "Modifier Keys…" of tab group 1 of window "Keyboard & Mouse"
			tell sheet 1 of window "Keyboard & Mouse"
				-- get the text of the 3rd pop up button
				set commandKey to value of pop up button 3
				-- looks like we're in default mode.  Swap the keys
				if commandKey ends with "Option" then
					click pop up button 3
					click menu item 4 of menu 1 of pop up button 3
					delay 1
					click pop up button 4
					click menu item 3 of menu 1 of pop up button 4
				else
					-- We're in PC keyboard mode.  Swap back to the defaults
					click button "Restore Defaults"
				end if
				-- close the sheet
				click button "OK"
			end tell
		end tell
		tell application "System Preferences" to quit
	else
		-- UI elements not enabled.  Display an alert
		tell application "System Preferences"
			activate
			set current pane to pane "com.apple.preference.universalaccess"
			display dialog "UI element scripting is not enabled.
              Check \"Enable access for assistive devices\""
		end tell
	end if
end tell
» View Post Timeline

39 Responses to “Change keyboard modifier keys automatically on OSX with Applescript”

  1. Ben VonZastrow Says:

    Thank you Thank you Thank you (both). I was going nutzo till this came a long. Thank you.

  2. Filip Says:

    For non english Mac OSX, you’ll need to localize the references :
    “Modifier Keys…” and “Keyboard & Mouse”

    Is there a way to do the same thing via command line (ie write com.apple.xxx setting Command and alt mapping but I don’t know where those setting are stored)

    I think It could be a lot faster than replaying the Point and click settings…

    Thanks a lot (I bought a DiNovo for My PowerBook and DoubleCommand is a pain for using both keyboard without travelling in Prefpane)

    Thanks again and again

  3. Wheat Williams Says:

    Thanks very much. I knew I was not the only person who had this problem!

    Actually, I use a Windows external keyboard with my new MacBook Pro at my desk at home. I have been using keyboards designed for Windows on desktop Macs at home for probably ten years. First it was the Microsoft Natural Keyboard Elite, and now it’s the Belkin Ergoboard Pro. These are both “split-key” angled designse. They are comfortable and they are inexpensive.

    When I take the MacBook Pro out of the house, I need to use the built-in Apple keyboard. Your solution has made things easier, so thanks.

  4. Wheat Williams Says:

    Can you please provide details as to how you configured MarcoPolo to use this AppleScript?

  5. Luke Says:

    Wheat,

    Marcopolo only supports executing a shell script as an action, not an Applescript. I worked with this by creating a tiny shell script to call the applescript. Sorry, I should have mentioned that in the original post.

    Here is the script called by Marcopolo: keyboard-swap.sh

    #!/bin/sh

    osascript /Users/myusername/Scripts/keyboard-swap.scpt

    the oascript command tells the system to execute the applescript.

    cheers

  6. Jan Fabry Says:

    Instead of adding it as a shell script, you can also add it as an “Open” action. This way, you don’t need to create a wrapper shell script, and can just reference the original .scpt-file.

  7. CBowns Says:

    You are awesome. Thanks so much! I can’t use MarcoPolo to do my location switching, since it never refires a VPN connection script, but I manually invoke a couple scripts with Quicksilver, and this fits in perfectly.

  8. Leaf Raker Says:

    How to use a Microsoft keyboard with your Mac…

    Using a Microsoft keyboard with a MacBook is possible but has one major drawback: The “Option” and “Command”-keys are exchanged and called “Windows” and “Alt”-keys.
    Fortunately swapping the keys so that t…

  9. joaedmonds Says:

    Hello Members,
    Can you help me to find
    The best soft to PC-where to buy, join site & other tipe to do a home online business.
    Thanks for the info.

  10. Jon Thomas Says:

    It appears that the script is not functioning properly in Leopard. For some reason, if the keys are in their default setting, the script won’t switch them, but if they are already switched, it has no problem restoring defaults. Please email me if you’re able to tweak this or check it out.

  11. Jon Thomas Says:

    Here is updated code for Leopard. The button assignment numbers are different. Copy and paste what is below.

    – **********************************************************************************
    – Utility script to switch keyboard mapping for Command and Option keys.
    – Useful when you have a PC external keyboard that you use in one location, but
    – at other times you are using the builtin laptop keyboard or an Apple keyboard.
    – Author: Lance Ball (lanceball - at - mac - dot - com)
    – **********************************************************************************

    – Open System Preferences
    tell application “System Preferences”
    activate
    set current pane to pane “com.apple.preference.keyboard”
    end tell

    tell application “System Events”
    – If we don’t have UI Elements enabled, then nothing is really going to work.
    if UI elements enabled then
    tell application process “System Preferences”
    get properties

    – Open up the Modifier Keys sheet
    click button “Modifier Keys…” of tab group 1 of window “Keyboard & Mouse”
    tell sheet 1 of window “Keyboard & Mouse”
    – get the text of the 2nd pop up button
    set commandKey to value of pop up button 2
    – looks like we’re in default mode. Swap the keys
    if commandKey ends with “Option” then
    click pop up button 2
    click menu item 4 of menu 1 of pop up button 2
    delay 0.1
    click pop up button 1
    click menu item 3 of menu 1 of pop up button 1
    delay 0.1
    else
    – We’re in PC keyboard mode. Swap back to the defaults
    click button “Restore Defaults”
    end if
    – close the sheet
    click button “OK”
    end tell
    end tell
    tell application “System Preferences” to quit
    else
    – UI elements not enabled. Display an alert
    tell application “System Preferences”
    activate
    set current pane to pane “com.apple.preference.universalaccess”
    display dialog “UI element scripting is not enabled.
    Check \”Enable access for assistive devices\”"
    end tell
    end if
    end tell

  12. lenochka Says:

    Что нужно, чтобы праздник запомнился? Яркий веселый ведущий. Увлекательный тамада. Оригинальный сценарий. Профессиональная организация мероприятия. Все это организует для Вас Конструкторское бюро праздников «Будет Весело!» К Вашим услугам лучшие ведущие свадьбы : известные узнаваемые лица и молодые талантливые ведущие. Заказ тамады .
    Фонтан веселья, юмора, сюрпризы и розыгрыши, музыкальное сопровождение: звезды эстрады и танцевальные коллективы. Все это и многое другое профессионально, креативно, эксклюзивно. Для Вас. Более подробная информация размещена на нашем сайте http://www.budetveselo.ru. Заходите, будет весело!

  13. vustinguiggem Says:

    Из за нестабильности сайтов на аккаунте (аптайм не дотягивал и до 80%) попросил супорт что то решить с этим вопросом, они перенесли мой аккаунт на новый сервер, после чего у меня пропали саб домены, написал об этом им, они сказали что забыли их перенести, только вдумайтесь какими нужно быть безответственными что бы просто забыть, после того как они перенесли сабдомены заработали, но при этом базу они запороли напроч, полетела кодировка таблиц и часть данных, сразу они начали отрицать своё причастие, потом после того как я начал требовать логи, они вообще меня игнорируют, прошло уже 5 дней, а ответов нету http://forum.siemensgsm.ru.

    Я с этой ситуации просто вшоке, буду распространять инфу по нету, что бы люди 100 раз подумали перед тем как выбрать славхост.

    И вообще супорт у них если вам и удасться выцепить, то там всеравно не на один вопрос толком ответить не могут, стабильности работы никакой, постоянные ошибки.

    Вобщем хуже хостинга чем http://slavhost.ru пока я ещё не встречал, советую всем задуматься перед тем как воспользоваться их услугами.

  14. Jim Kukla Says:

    Thanks so much for the tip!

    The one tweak I’d recommend is avoiding the “Restore Defaults” button. I remap caps lock to control and the reset button clobbers that handily. :)

    Here’s a modified version of the script that inverts the logic in the first branch instead of using the restore button.

    I’ve tested it on 10.4 but not 10.5.

    fyi,
    jk

    – **********************************************************************************
    – Utility script to switch keyboard mapping for Command and Option keys.
    – Useful when you have a PC external keyboard that you use in one location, but
    – at other times you are using the builtin laptop keyboard or an Apple keyboard.
    – Author: Lance Ball (lanceball - at - mac - dot - com)
    – **********************************************************************************

    – Open System Preferences
    tell application “System Preferences”
    activate
    set current pane to pane “com.apple.preference.keyboard”
    end tell

    tell application “System Events”
    – If we don’t have UI Elements enabled, then nothing is really going to work.
    if UI elements enabled then
    tell application process “System Preferences”
    get properties

    – Open up the Modifier Keys sheet
    click button “Modifier Keys…” of tab group 1 of window “Keyboard & Mouse”
    tell sheet 1 of window “Keyboard & Mouse”
    – get the text of the 3rd pop up button
    set commandKey to value of pop up button 3
    – looks like we’re in default mode. Swap the keys
    if commandKey ends with “Option” then
    click pop up button 3
    click menu item 4 of menu 1 of pop up button 3
    delay 1
    click pop up button 4
    click menu item 3 of menu 1 of pop up button 4
    else
    – We’re in PC keyboard mode. Swap back to the defaults
    click pop up button 3
    click menu item 3 of menu 1 of pop up button 3
    delay 1
    click pop up button 4
    click menu item 4 of menu 1 of pop up button 4

    end if
    – close the sheet
    click button “OK”
    end tell
    end tell
    tell application “System Preferences” to quit
    else
    – UI elements not enabled. Display an alert
    tell application “System Preferences”
    activate
    set current pane to pane “com.apple.preference.universalaccess”
    display dialog “UI element scripting is not enabled.
    Check \”Enable access for assistive devices\”"
    end tell
    end if
    end tell

  15. Fgv454GFR5GH Says:

    + (15 *: :

  16. jolleyjoe Says:

    I have modified the script as well. In my version, when you change the settings for an external keyboard to swap keys, it will also change the settings for the Macbook’s Internal Keyboard to the defaults (so you can use both as naturally as possible). As well, I added Growl notifications to show you what mode you are in (external or default.

    Everything under this line is code:

    – **********************************************************************************
    – Utility script to switch keyboard mapping for Command and Option keys.
    – Useful when you have a PC external keyboard that you use in one location, but
    – at other times you are using the builtin laptop keyboard or an Apple keyboard.
    – Author: Lance Ball (lanceball - at - mac - dot - com)
    – **********************************************************************************

    – Open System Preferences
    tell application “System Preferences”
    activate
    set current pane to pane “com.apple.preference.keyboard”
    end tell

    tell application “System Events”
    – If we don’t have UI Elements enabled, then nothing is really going to work.
    if UI elements enabled then
    tell application process “System Preferences”
    get properties
    – Open up the Modifier Keys sheet
    click button “Modifier Keys…” of tab group 1 of window “Keyboard & Mouse”
    tell sheet 1 of window “Keyboard & Mouse”
    – get the text of the 3rd pop up button
    set commandKey to value of pop up button 2
    – If we’re in default mode, swap the keys
    if commandKey ends with “Option” then
    – Change “All” keyboards
    click pop up button 2
    click menu item 4 of menu 1 of pop up button 2
    delay 0.1
    click pop up button 1
    click menu item 3 of menu 1 of pop up button 1
    delay 0.1
    – Change “Internal Keyboard” to default mode
    click pop up button 5
    click menu item “Apple Internal Keyboard / Trackpad” of menu of pop up button 5
    delay 0.1
    click pop up button 2
    click menu item 3 of menu of pop up button 2
    delay 0.1
    click pop up button 1
    click menu item 4 of menu of pop up button 1
    delay 0.1
    else
    – We’re in PC keyboard mode. Swap back to the defaults
    click button “Restore Defaults”
    end if
    – close the sheet
    click button “OK”
    end tell
    end tell
    tell application “System Preferences” to quit
    else
    – UI elements not enabled. Display an alert
    tell application “System Preferences”
    activate
    set current pane to pane “com.apple.preference.universalaccess”
    display dialog “UI element scripting is not enabled.
    Check \”Enable access for assistive devices\”"
    end tell
    end if
    end tell

  17. jolleyjoe Says:

    Oh, and it can be downloaded here:
    http://www.box.net/shared/0wb7hj7oko

  18. Martin Skopp Says:

    Here’s a german version for Leopard/10.5:

    – **********************************************************************************
    – Utility script to switch keyboard mapping for Command and Option keys.
    – Useful when you have a PC external keyboard that you use in one location, but
    – at other times you are using the builtin laptop keyboard or an Apple keyboard.
    – Author: Lance Ball (lanceball - at - mac - dot - com)
    – **********************************************************************************

    – Open System Preferences
    tell application “System Preferences”
    activate
    set current pane to pane “com.apple.preference.keyboard”
    end tell

    tell application “System Events”
    – If we don’t have UI Elements enabled, then nothing is really going to work.
    if UI elements enabled then
    tell application process “System Preferences”
    get properties

    – Open up the Modifier Keys sheet
    click button “Sondertasten …” of tab group 1 of window “Tastatur & Maus”
    tell sheet 1 of window “Tastatur & Maus”
    set commandKey to value of pop up button 2
    – looks like we’re in default mode. Swap the keys
    if commandKey ends with “Wahltaste” then
    click pop up button 2
    click menu item 4 of menu 1 of pop up button 2
    delay 0.1
    click pop up button 1
    click menu item 3 of menu 1 of pop up button 1
    else
    – We’re in PC keyboard mode. Swap back to the defaults
    click button “Standard wiederherstellen”
    end if
    – close the sheet
    click button “OK”
    end tell
    end tell
    tell application “System Preferences” to quit
    else
    – UI elements not enabled. Display an alert
    tell application “System Preferences”
    activate
    set current pane to pane “com.apple.preference.universalaccess”
    display dialog “UI element scripting is not enabled.
    Check \”Enable access for assistive devices\”"
    end tell
    end if
    end tell

  19. Тамада Says:

    Very good.

  20. caphigniphecy Says:

    http://www.hairstylestop.com/wp-content/uploads/2008/07/heidi1.jpg
    Oh what I wouldn t give to have been a fly on the wall during this luncheon. Here is Heidi Montag having lunch with Meghan McCain, who is none other than the daughter of Republican Presidential Candidate John McCain. And yes, Heidi is boring as usual with her straight blonde locks that never change. Meghan of course does not have the most inspiring hairstyle, but when your dad is running for President of the United States, fading into the background is much more requisite than standing out amongst the crowd. Heidi dressed as conservative as even she could I suppose, and styled her hair in the same boring style with the flat iron and the side part. One would think that if you are somewhat of a starlet and are going to be seen with the daughter of a Presidential candidate you might make more of an effort. However, maybe Heidi doesn t even understand the whole Presidential thing who knows! Shake it up Heidi! Her hairstyle is getting as about as boring as her storyline.
    Welcome to the Hairstyles Top. Here you will find the latest top hair style pictures, and advice for new hairstyles: medium hairstyles, black hairstyles, layered hairstyles and prom hairstyles, etc. Lots of celebrity haircuts.

  21. alurmoumb Says:

    Знакомства девушки. Знакомства, общение, чаты, сайт знакомств.
    Сайт секс знакомств

  22. tvcooltv Says:

    бесплатно скачать порнофильмы

  23. XRumerIsTheBest Says:

    Доброго времени суток, форумчане сайта fall-line.com ;)

    Ответьте мне, пожалуйста, на несколько вопросов…
    - какая программа умеет автоматически за НЕСКОЛЬКО СЕКУНД регистрировать ящики на mail.ru и многих других почтовиках?
    - какая программа умеет автоматом рассылать по mamba.ru и loveplanet.ru по заданным параметрам, при этом еще поддерживая функции автоответчика?
    - а также сможет разослать по форумам текст (например) “где купить валенки?”, а потом в ответ на этот текст ОТ ДРУГОГО имени и IP написать (например) “только на сайте megavalenki.ru!”?
    - плюс распознаёт картинки и вопросы а-ля “что написано на этой картинке?”, “сколько будет 2+2?” и “какой сейчас год?” и умеет корректно на них отвечать?
    - какая программа сможет разослать топики по форумам, попутно автоматически регистрироваться на них и создавая подробный отчет о проделанной работе?
    - и при этом работает с разнообразными движками - phpBB, VBulletin, IPB, ExBB, Icon Board, YaBB, UltimateBB, множеством различных гостевых, досок и блогов?
    - какую программу вы МОЖЕТЕ переделать под свой вкус?
    - какая программа автоматически обновляет прокси / SOCKS, обеспечивая вам полную анонимность? (достаточно просто нажать ОДНУ кнопку)
    - какая программа умеет рассылать персональные сообщения всем пользователям форумов phpBB, IPB, VBulletin?
    - какая программа отсортирует Вашу базу ссылок по Google PageRank?
    - какая программа МАССОВО отредактирует все Ваши ранее разосланные объявления по форумам?
    - и при этом еще регулярно обновляется и совершенствуется.

    Ответ ОДИН: всё это и многое другое под силу программному комплексу XRumer 4.085 Platinum Edition + Hrefer 2.85
    Данный комплекс имеет множество отзывов на авторитетных источниках (Washington Post, Wikipedia и т.п.), имеет историю активного развития более 3-х лет.

    Просто спроси у Яндекса! ;)

    См. также: массовые рассылки, SEO, рассылка по форумам, дорвеи, XRumer 3.0 устарел, хрумер 2.9 устарел, PPC, программы для SEO, XRumer 2.9 устарел, XRumer Platinum, распознавание капчи, ППЦ, XRumer forever, doorways, распознавание текстовой защиты, софт для SEO, постинг, постинг по блогам, программы для СЕО, хрумер 3.0 устарел, рефспам, мощная спамилка, софт для СЕО, чёрное СЕО, white SEO, распознавание графической защиты, линкспам, black SEO, XRumer, белое СЕО, суперсофт для SEO, СЕО

  24. Звезда эстрады Says:

    Где же скачать эти программы?

  25. liandyflidA Says:

    Клуб любителей больших сисек
    http://vkontakte.ru/club3729289
    Присоеденяйтесь к нам!!!

  26. Alfalock Says:

    Стильные стальные двери Форпост нового поколения
    http://www.alphalock.ru/

  27. Betalock Says:

    Расскажите пожалуйста по-подробнее. Очень интеерсно.

  28. Фотоаппарат Says:

    Да это похоже так на самом деле.

  29. Sserver Says:

    Hello everybody!

    MySQL http://www.s-server.net/mod.php?name=Tarif&op=ShowDomain

    Bye!

  30. Entenundadum Says:

    Cool text.., man

  31. Netgarou Says:

    Here’s a Leopard version I made, based off of JolleyJoe’s
    This one also has code to swap the MBP’s keyboard illumination on/off (off for ‘docked’ mode. You can enable this feature as per the script comments. It is off by default.
    I use this with MarcoPolo and it works well, by saving it as an app and executing with MarcoPolo.

    – **********************************************************************************
    – Utility script to switch keyboard mapping for Command and Option keys.
    – Useful when you have a PC external keyboard that you use in one location, but
    – at other times you are using the builtin laptop keyboard or an Apple keyboard.
    – Author: Lance Ball (lanceball - at - mac - dot - com)
    – Modified by: Joe Chan
    – Modified attributes: Script will change Internal Keyboard to have default behavior when
    – changing keyboards

    – Leopard 10.5.5 versi by Chris Alleyne-Chin. Also added feature to toggle Macbook Pro keyboard illumination.
    – (Remove the appropriate remark lines that start with “–**” to enable this if your system supports it).
    – Also disabled Growl notifications by default.

    – **********************************************************************************

    – Set up growl notifications
    tell application “GrowlHelperApp”
    – Make a list of all the notification types
    – that this script will ever send:
    set the allNotificationsList to ¬
    {”External Keyboard Mode Notification”, “Default Keyboard Mode Notification”}

    – Make a list of the notifications
    – that will be enabled by default.
    – Those not enabled by default can be enabled later
    – in the ‘Applications’ tab of the growl prefpane.
    set the enabledNotificationsList to ¬
    {”External Keyboard Mode Notification”, “Default Keyboard Mode Notification”}

    – Register our script with growl.
    – You can optionally (as here) set a default icon
    – for this script’s notifications.
    register as application ¬
    “Change Keyboard AppleScript” all notifications allNotificationsList ¬
    default notifications enabledNotificationsList ¬
    icon of application “Script Editor”
    end tell

    – Open System Preferences
    tell application “System Preferences”
    activate
    set current pane to pane “com.apple.preference.keyboard”
    end tell

    tell application “System Events”
    – If we don’t have UI Elements enabled, then nothing is really going to work.
    if UI elements enabled then
    tell application process “System Preferences”
    get properties
    –If keyboard illumination is on, disable it when the external keyboard is connected.
    –**if value of checkbox “Illuminate keyboard in low light conditions” of group 1 of tab group 1 of window “Keyboard & Mouse” is 1 then
    –** click checkbox “Illuminate keyboard in low light conditions” of group 1 of tab group 1 of window “Keyboard & Mouse”
    –**end if
    – Open up the Modifier Keys sheet
    click button “Modifier Keys…” of tab group 1 of window “Keyboard & Mouse”
    tell sheet 1 of window “Keyboard & Mouse”
    – get the text of the 3rd pop up button
    set areweDefault to “0″
    set commandKey to value of pop up button 2
    – If we’re in default mode, swap the keys
    if commandKey ends with “Option” then
    – Change “All” keyboards
    click pop up button 2
    click menu item 4 of menu 1 of pop up button 2
    delay 0.1
    click pop up button 1
    click menu item 3 of menu 1 of pop up button 1
    delay 0.1
    – Send growl notification
    –** tell application “GrowlHelperApp”
    –notify with name ¬
    –** “External Keyboard Mode Notification” title ¬
    –** “External Keyboard Mode” description ¬
    –** “Settings have been optimized for external keyboards” application name “Change Keyboard AppleScript”
    –** end tell
    –** delay 0.1
    click button “OK”
    else
    – We’re in PC keyboard mode. Swap back to the defaults
    click button “Restore Defaults”
    –** set areweDefault to “1″
    – Send growl notification
    –** tell application “GrowlHelperApp”
    –notify with name ¬
    –** “Default Keyboard Mode Notification” title ¬
    –** “Default Keyboard Mode” description ¬
    –** “Reverted to default keyboard settings” application name “Change Keyboard AppleScript”
    –**end tell
    click button “OK”
    end if
    – close the sheet
    end tell
    –** If switching back into laptop keyboard mode, then reenable the keyboard illumination if it was disabled
    –** if areweDefault is “1″ then
    –** if value of checkbox “Illuminate keyboard in low light conditions” of group 1 of tab group 1 of window “Keyboard & Mouse” is 0 then
    –** click checkbox “Illuminate keyboard in low light conditions” of group 1 of tab group 1 of window “Keyboard & Mouse”
    –** end if
    –**end if

    end tell
    tell application “System Preferences” to quit
    else
    – UI elements not enabled. Display an alert
    tell application “System Preferences”
    activate
    set current pane to pane “com.apple.preference.universalaccess”
    display dialog “UI element scripting is not enabled.
    Check \”Enable access for assistive devices\”"
    end tell
    end if
    end tell

  32. dschibut Says:

    I began this thread to speak about public available web proxies:

    Which are really anonymous?

    Which can unblock facebook, myspace etc, in other words: are fresh ?

    Which can you recommend?

    Thanks for your help,
    Dschibut

    P.S.: In my land, the freedom of speech is somehow constrained, please give me a hint, if you are not sure about your recommendation.

  33. Kathrynborlandbest Says:

    Recently, my husband started with the potential problem and our relations are deadlocked.
    After all, I love sex … I encouraged him to go to the doctor, and he is afraid.
    Maybe someone who will help us, tell of impotence pills and where to buy them anonymously. In advance thank you to all who help!
    Sorry if in the wrong section leave a message!

  34. crorkOntorb Says:

    We witnessed a very crazy day for the stock market yesterday. The DOW plunged 800 points only to come roaring back to close down 370 points. It was breathtaking for many of us because we were glued to our TV (and computer screen) as the stock market kept on going down but for some of us, it didn’t really matter because our focus was on other things.
    Yesterday, I was extremely busy at work. I was so busy that I didn’t have time to check on Yahoo Finance nor did I have time to talk to my coworkers about the stock market. When I finally sat down and looked at how the market was doing, I saw the headline (DOW plunged 800 points and closed at 370) on the homepage. My net worth probably plunged just like any other 350 point down days, but it didn’t matter as much to me.
    I wasn’t emotionally upset this time because I wasn’t “living” the roller coaster. As a result, it hurt my wallet but didn’t hurt my feelings. I felt much better and saved myself from much of the emotions of a down day just by focusing on other parts of my life. I wasn’t thinking about the stock market nor was I worrying about the Cisco (CSCO) shares that I owned.
    I was living my life and not being controlled by the stocks I own. I felt good. In this type of market, maybe you should try it too.
    How did you spend your day yesterday? Did you even know that the stock market plunged? Can you sleep at night these days? If you aren’t worried at all, reply and show some encouragement to those that couldn’t!

    You can now follow me on twitter! Alternatively, subscribe to my RSS feed or get blog posts through email if you enjoyed this post. You might even win a prize or two by doing so!

    http://www.moneyning.com

    Laura Kauffmann
    “Seven Oceans Investments Club”

  35. MonsTreLLo Says:

    http://hacker-pro.net/
    Наш Клуб объединяет программистов совершенно разных направленностей, это могут быть веб или же системные программисты, а также просто люди которые разбираются в железе, коммуникациях и
    интернете технологиях.
    HackerPro club
    Coding & Security

  36. bletgliruntee Says:

    http://traill900.blogspot.com

  37. jimbomel Says:

    Hi people,

    I am new to this forum fall-line.com and hope that anybody can
    help me with the forex - I am looking for an introduction
    for beginners. I have already some knowledge about shares. (Hope this is the adequate category.)

    Help is so much appreciated. Most important question: can a noob make money on the forex exchange market?

    Thanks,
    Jim

  38. HSCharles Says:

    I have a flash site
    i’m looking for the script who makes google adsense in flash.
    where can i get it?

  39. gareOxybearse Says:

    Hello. It is test.

Leave a Reply


Close
E-mail It