How to create shortcut to turn on/off Wifi in Snow Leopard
I want to use the F5 key on my MBP to turn on Wifi with a single hit on the keyboard and turn it off again with a single hit using F6. Is this possible? I've tried to do it under Preferences/Keyboard/Keyboard Shortcuts but I can't add F5 (not by typing and not by hitting that button). That button seems to be dedicated for the illumination of the keyboard. How can I change these settings so that I can have my fast function key at my disposal.
Cheers,
BassPlaya
Since nobody has posted a solution, here's one way to do it, expanding upon WZZZ's answer above should actually be:
networksetup -setairportpower en1 off
networksetup -setairportpower en1 on
where en1 is the Interface Name of your Wi-Fi device. It was en1 on my laptop, but you can check and be sure using:
networksetup -listnetworkserviceorder
Also, you can toggle it if you grep the current state using -getairportpower first. Here's the full command to toggle Wi-Fi state on and off (the whole thing is one long line):
networksetup -getairportpower en1 | grep "On" && networksetup -setairportpower en1 off || networksetup -setairportpower en1 on
But typing it every time into Terminal is no good, so here's how you create a keyboard shortcut that runs a shell command:
1. Start Automator, and create a new Service.
2. Set "Service receives selected: to "no input" in "any application".
3. Add an action named "Run Shell Script". It's in the Utilities section of the Actions Library.
4. Insert the bash command you want into the text box and test run it using the Run button (top right). It should do whatever the script does (off, on or toggle), and there should be green ticks below the Action.
5. Save it, giving it a service name you can remember.
6. Go to System Preferences -> Keyboard, and go to the Shortcuts tab
7. Go to the Services section, and scroll down to General - you should find your service there. If you select the line, you can click "add shortcut" and give it a keyboard shortcut.
The shortcut key will now trigger whatever command you set up earlier, no matter what app you're in, but shortcuts from the app take priority (so if your hotkey clashes with a hotkey in the app you're currently running, the app's hotkey will trigger).
Also, I don't think you can use any of the function keys. I don't know why, but I've never had those ever work, even with the Fn key. Command Shift A or something like that works fine.
Similar Messages
-
How to create shortcut desktop icon for all users???
Hello All,
I want to know how to create shortcut icon for all users in windows 7. I tried C:\Users\Public but no folder for Desktop.
ThanksC:\users\All users
JS
Hi,
I am just wondering, what is the technically correct location to place say, a shortcut, for all users to access on their desktops on a given machine?
Is it C:\Users\Public\Desktop ?
Or is it C:\Users\All Users\Desktop ?
Would it also be possible to explain the differences as well? Or paste some links to the overview of each one? I am having trouble finding anything from MS.
Thank you. -
How to create shortcut icons for settings
how to create shortcut icons for settings
I also have this issue. Apple has indicated they want to have a larger presence in businesses. VPN is a huge part of any business network. Frustrations are hightened by the VPN disconnecting whenever the device Auto-locks. We have a definite need to make VPN's on iPads less tedious...
-
How to creat shortcut for ethernet on desktop in win 8
how to create shortcut for Ethernet enable and disable
because i have internet connected with LAN
and it is has no internet disconnection optionHi,
Here is the command you can write to the batch:
To disable the interface, you'd then run:
netsh interface set interface name="Local Area Connection” admin=DISABLED
To enable the interface, you'd then run:
netsh interface set interface name=“Local Area Connection” admin=ENABLED
Note to find your network interface, you can run
netsh interface show interface command.
Thanks!
Andy Altmann
TechNet Community Support -
HT5449 Is there a shortcut to turn dictation off?
Is there a shortcut to turn dictation off? It works great but it is a huge memory hog (1GB), so it would be great to have a shortcut to turn it off, like the shortcut to turn it on? I am have been looking everywhere with no luck.
If all you want is a shortcut to turn off dictation this Applescript
tell application "System Preferences"
activate
set current pane to pane id "com.apple.preference.speech"
tell application "System Events"
tell process "System Preferences"
tell radio button "off" of radio group 1 of tab group 1 of window 1
click
end tell
end tell
end tell
end tell
will do that. You could save it as an App and assign a shortcut to it.
Turning it on is a bit more complicated unless you have enhanced on already. -
Osx10.6 keeps freezing how can I fix without turning power off?
osx10.6 keeps freezing how can I fix without turning power off? It has happened a dozen times in the last ten days -
Force Quit will not respond
When the freeze occurs the cursor will move, but not activate any application
The only way to restore activity is to turn off MacBook with power button
I do not like doing this, and am happy that so far Time Machine has not stopped functioning when I turn power back on.Yesterday my macbook pro freezed again, two times in 20 minutes!!!
When i restarted the computer there was this message (maybe it is useful for resolving my problem):
Interval Since Last Panic Report: 29598 sec
Panics Since Last Report: 2
Anonymous UUID: 0C2CFCCA-8A3F-445F-89D3-99573F5C31AA
Fri Jun 3 19:26:42 2011
panic(cpu 1 caller 0x9cdc8f): NVRM[0/1:0:0]: Read Error 0x00002500: CFG 0xffffffff 0xffffffff 0xffffffff, BAR0 0x92000000 0x36a0c000 0x084700a2, D0, P0/4
Backtrace (CPU 1), Frame : Return Address (4 potential args on stack)
0xe036b8 : 0x21b510 (0x5d9514 0xe036ec 0x223978 0x0)
0xe03708 : 0x9cdc8f (0xbe323c 0xc53840 0xbf23cc 0x0)
0xe037a8 : 0x15c7a7d (0x6255c04 0x6cd3004 0x2500 0x6cd3004)
0xe037e8 : 0x15b8d5e (0x6cd3004 0x2500 0x0 0x0)
0xe03868 : 0x15af132 (0x6cd3004 0x6d95004 0x41 0xe038a0)
0xe03988 : 0xad3b45 (0x6cd3004 0x6d95004 0x996500c 0x200)
0xe039c8 : 0xb52a66 (0x6cd3004 0x6d95004 0x7bcc52c 0x7bcc504)
0xe03a78 : 0xb542d7 (0x6cd3004 0x6d9d404 0x0 0x0)
0xe03b08 : 0x15adf19 (0x6cd3004 0x6d9d404 0x6 0x2)
0xe03b88 : 0x15b7f8e (0x6cd3004 0x6d95004 0x1010 0xe03c9c)
0xe03cf8 : 0x15ef33e (0x6cd3004 0x6d95004 0x0 0x0)
0xe03e28 : 0xb07250 (0x6cd3004 0x6d13004 0x0 0x0)
0xe03e68 : 0x9d6e23 (0x6cd3004 0x6d13004 0x0 0x0)
0xe03f08 : 0x55125b (0x0 0x63d1780 0x1 0x29f562)
0xe03f58 : 0x55028c (0x63d1780 0x1 0xe03f88 0x54fe43)
0xe03f88 : 0x5506e6 (0x63b73c0 0x6805b7c 0x16808f71 0xffffffff)
0xe03fc8 : 0x2a06dc (0x63b73c0 0x0 0x10 0x66b87a4)
Kernel Extensions in backtrace (with dependencies):
com.apple.nvidia.nv50hal(6.2.6)@0x14c5000->0x18d9fff
dependency: com.apple.NVDAResman(6.2.6)@0x967000
com.apple.NVDAResman(6.2.6)@0x967000->0xc54fff
dependency: com.apple.iokit.IOPCIFamily(2.6)@0x927000
dependency: com.apple.iokit.IONDRVSupport(2.2)@0x95a000
dependency: com.apple.iokit.IOGraphicsFamily(2.2)@0x938000
BSD process name corresponding to current thread: kernel_task
Mac OS version:
10J869
Kernel version:
Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386
System model name: MacBookPro3,1 (Mac-F4238BC8)
System uptime in nanoseconds: 702931547147
unloaded kexts:
com.apple.driver.AppleFileSystemDriver 2.0 (addr 0x102a000, size 0x12288) - last unloaded 112769797938
loaded kexts:
com.vmware.kext.vmnet 3.0.0 - last loaded 49645686211
com.vmware.kext.vmioplug 3.0.0
com.vmware.kext.vmci 3.0.0
com.vmware.kext.vmx86 3.0.0
com.sophos.kext.sav 7.3.0
com.bresink.driver.BRESINKx86Monitoring 8.0
com.apple.driver.AppleHWSensor 1.9.3d0
com.apple.filesystems.autofs 2.1.0
com.apple.driver.AppleHDA 1.9.9f12
com.apple.kext.AppleSMCLMU 1.5.0d3
com.apple.driver.AppleUpstreamUserClient 3.5.4
com.apple.driver.AppleMCCSControl 1.0.17
com.apple.driver.AirPort.Atheros21 424.14.5
com.apple.driver.AppleIntelMeromProfile 19.1
com.apple.driver.AppleBacklight 170.0.34
com.apple.driver.SMCMotionSensor 3.0.0d4
com.apple.driver.ACPI_SMC_PlatformPlugin 4.5.0d5
com.apple.driver.AudioAUUC 1.54
com.apple.GeForce 6.2.6
com.apple.driver.AppleLPC 1.4.12
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.iokit.CHUDUtils 364
com.apple.iokit.CHUDProf 366
com.apple.driver.AudioIPCDriver 1.1.6
com.apple.driver.AppleUSBTrackpad 200.3.2
com.apple.driver.AppleUSBTCKeyEventDriver 200.3.2
com.apple.driver.AppleUSBTCKeyboard 200.3.2
com.apple.driver.AppleIRController 303.8
com.apple.iokit.SCSITaskUserClient 2.6.5
com.apple.BootCache 31
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.driver.AppleUSBHub 4.1.7
com.apple.iokit.IOAHCIBlockStorage 1.6.3
com.apple.driver.AppleSmartBatteryManager 160.0.0
com.apple.driver.AppleIntelPIIXATA 2.5.1
com.apple.driver.AppleAHCIPort 2.1.5
com.apple.driver.AppleFWOHCI 4.7.1
com.apple.driver.AppleUSBEHCI 4.1.8
com.apple.driver.AppleUSBUHCI 4.1.5
com.apple.iokit.AppleYukon2 3.2.1b1
com.apple.driver.AppleEFINVRAM 1.4.0
com.apple.driver.AppleRTC 1.3.1
com.apple.driver.AppleHPET 1.5
com.apple.driver.AppleACPIButtons 1.3.5
com.apple.driver.AppleSMBIOS 1.6
com.apple.driver.AppleACPIEC 1.3.5
com.apple.driver.AppleAPIC 1.4
com.apple.driver.AppleIntelCPUPowerManagementClient 105.13.0
com.apple.security.sandbox 1
com.apple.security.quarantine 0
com.apple.nke.applicationfirewall 2.1.11
com.apple.driver.AppleIntelCPUPowerManagement 105.13.0
com.apple.driver.DspFuncLib 1.9.9f12
com.apple.iokit.IOFireWireIP 2.0.3
com.apple.driver.AppleHDAController 1.9.9f12
com.apple.iokit.IOHDAFamily 1.9.9f12
com.apple.iokit.IO80211Family 314.1.1
com.apple.driver.AppleProfileReadCounterAction 17
com.apple.driver.IOPlatformPluginFamily 4.5.0d5
com.apple.nvidia.nv50hal 6.2.6
com.apple.NVDAResman 6.2.6
com.apple.iokit.IONDRVSupport 2.2
com.apple.driver.AppleProfileTimestampAction 10
com.apple.driver.AppleProfileThreadInfoAction 14
com.apple.driver.AppleProfileRegisterStateAction 10
com.apple.driver.AppleProfileKEventAction 10
com.apple.driver.AppleProfileCallstackAction 20
com.apple.iokit.IOSurface 74.2
com.apple.iokit.IOGraphicsFamily 2.2
com.apple.iokit.IOBluetoothSerialManager 2.4.0f1
com.apple.iokit.IOSerialFamily 10.0.3
com.apple.driver.AppleSMC 3.1.0d3
com.apple.iokit.CHUDKernLib 365
com.apple.iokit.IOAudioFamily 1.8.0fc1
com.apple.kext.OSvKernDSPLib 1.3
com.apple.iokit.AppleProfileFamily 41.4
com.apple.driver.CSRUSBBluetoothHCIController 2.4.0f1
com.apple.driver.AppleUSBBluetoothHCIController 2.4.0f1
com.apple.iokit.IOBluetoothFamily 2.4.0f1
com.apple.iokit.IOUSBHIDDriver 4.1.5
com.apple.driver.AppleUSBMergeNub 4.1.8
com.apple.driver.AppleUSBComposite 3.9.0
com.apple.iokit.IOSCSIMultimediaCommandsDevice 2.6.5
com.apple.iokit.IOBDStorageFamily 1.6
com.apple.iokit.IODVDStorageFamily 1.6
com.apple.iokit.IOCDStorageFamily 1.6
com.apple.driver.XsanFilter 402.1
com.apple.iokit.IOATAPIProtocolTransport 2.5.1
com.apple.iokit.IOSCSIArchitectureModelFamily 2.6.5
com.apple.iokit.IOUSBUserClient 4.1.5
com.apple.iokit.IOATAFamily 2.5.1
com.apple.iokit.IOAHCIFamily 2.0.4
com.apple.iokit.IOFireWireFamily 4.2.6
com.apple.iokit.IOUSBFamily 4.1.8
com.apple.iokit.IONetworkingFamily 1.10
com.apple.driver.AppleEFIRuntime 1.4.0
com.apple.iokit.IOHIDFamily 1.6.5
com.apple.iokit.IOSMBusFamily 1.1
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 6
com.apple.driver.DiskImages 289
com.apple.iokit.IOStorageFamily 1.6.2
com.apple.driver.AppleACPIPlatform 1.3.5
com.apple.iokit.IOPCIFamily 2.6
com.apple.iokit.IOACPIFamily 1.3.0
Model: MacBookPro3,1, BootROM MBP31.0070.B07, 2 processors, Intel Core 2 Duo, 2.4 GHz, 2 GB, SMC 1.16f11
Graphics: NVIDIA GeForce 8600M GT, GeForce 8600M GT, PCIe, 256 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x87), Atheros 5416: 2.1.14.5
Bluetooth: Version 2.4.0f1, 2 service, 19 devices, 1 incoming serial ports
PCI Card: pci168c,24, sppci_othernetwork, PCI Slot 5
Serial ATA Device: WDC WD5000BEVT-00A0RT0, 465,76 GB
Parallel ATA Device: MATSHITADVD-R UJ-857E
USB Device: Built-in iSight, 0x05ac (Apple Inc.), 0x8502, 0xfd400000
USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8205, 0x1a100000
USB Device: Apple Internal Keyboard / Trackpad, 0x05ac (Apple Inc.), 0x021b, 0x5d200000
USB Device: IR Receiver, 0x05ac (Apple Inc.), 0x8242, 0x5d100000
Any ideas? -
Can Siri turn on/off wifi?
I'm wondering if Siri can be used to turn on/off WiFi?
http://www.apple.com/ios/siri/
FAQ siri http://www.apple.com/ios/siri/siri-faq/ -
How can I import contacts from iCloud to iCal in snow leopard?
After upgrade software on iPhone (with iCloud) contacts of iCal on MAC (Snow Leopard) are no mre sync... with iPhone....
As now I have all updated contacts on iCloud, how can I import contacts from iCloud to iCal in snow leopard?
Thanks for help !!!!
MarcoLog in to icloud.com
Select Contacts
Click on the first contact
Hold down shift and click on the last contact
Click the gear box at the bottom of the screen
Choose "Export vcard..." -
HT1553 how do i find what version of Mac OS X Snow Leopard I have?
how do i find what version of Mac OS X Snow Leopard I have?
Choose About this Mac from the Apple menu.
(79776) -
I have installed the latest OS Lion and now a number of applications do not work. How and where do I go to get back to Snow Leopard 10.6.8
Restore from the backups you made before upgrading.
-
How to create shortcut on iPad
How do you create a shortcut on the ipad
You can only create shortcuts within Safari - tap the icon of the box with the arrow coming out of it the left of the address field and select 'Add To Home Screen'
-
Why does my macbook air display "welcome to my castle" when i log in and how do i turn it off?
MDaniel wrote:
welcome to discussions !
I have organized all of my music into folders. Each artist has their own folder and each album has its own subfolder. For some reason, whenever I play a song, it moves the file!
iTunes has its own way of organizing content. click here for information
Not only that, but I can't find the file anymore.
as long as you don't see an +exclamation mark+ next to those tune, the tune is still on your HD. to make iTunes show you where it is, right-click (or ctrl-click ) on the tune and select +show in finder+
Does anyone know how to fix this
you can try this and see if it suits your needs: go iTunes > preferences > advanced and deselect +keep iTunes media folder organized+
and where I can find all these missing file? I hope I haven't just lost my Jimi Hendrix discography.
unlikely, see above
what i said above is based on iTunes version 9. you didn't mention what version you're on ? -
How to create shortcut of Form6i's (.fmx) without refering TMSNAMES.ORA
I created shortcut as
c:\dev6i\bin\ifrun60 c:\forms\Tax.fmx tax/tax@ourdb
where outdb is a string made in TNSNAMES.ORA:
<p>
OURDB =<br>
(DESCRIPTION =<br>
(ADDRESS = (PROTOCOL = TCP)(HOST = 121.100.100.7)(PORT = 1521))<br>
(CONNECT_DATA = (SID = OUR_DB))
</p>
But I want to make the shorcut without referencing TNSNAMES.ORA file. I want it like:<br>
c:\dev6i\bin\ifrun60 c:\forms\Tax.fmx tax/[email protected]:1521:our_dbIt's a slash, not a colon.
tax/[email protected]:1521/our_db
This might only work with Oracle client 10.1 or higher.
~Jer -
How to create shortcut programmatically in the mobile from a website using MVC 4
Hi
We have created MVC 4 mobile web application, need to create shortcut from code in MVC 4 to mobile device. So that user need not to create shortcut himself/herself in mobile device.
Thanks in advance.This forum is to discuss problems of C# development. Your question is not related to the topic of this forum.
You'll need to post it in the dedicated ASP.Net Forum
http://forums.asp.net for more efficient responses, where you can contact ASP.NET experts. Thanks for understanding. -
How to create another email address for my Wife?
I might be over thinking this but how do I create another email address for my wife? I can't find where to do that? I found the alias email but not just a regular email. Please help someone:)
Thanks so much,
ScottHello Scott.
If this is in reference to creating a .Mac email only account for your wife, you don't so this via the Mail program. This is done via webmail access for your .Mac account preferences.
An .Mac account alias is free but an alias address cannot be accessed as a separate account because an alias isn't an account.
A .Mac email only account cost $10 per year and can be accessed as separate account.
Maybe you are looking for
-
After upgrade to iOS 8, My ipad is getting shut down intermediately.
After upgrade to iOS 8, My ipad is getting shut down intermediately. Even while surfing net also it happens. Earlier I thought it may be due to any software/game which is not compatible. But it happens during surfing net on Safri. No option to move b
-
when i click on reply, there are missing icons such as spell check,
-
I keep having to restart it every time I want to use it. Sometimes I have to restart it multiple times. The cord goes from the cable modem to the airport and then from the airport to the apple tv. I've replaced the apple TV and I've replaced the mode
-
Video exports as just audio?
I have just upgraded to iMovie 08 and am working on my first project; a simple task of splitting a single mp4 file I have into smaller parts to be put on my iPod Touch. I've selected the first part I wish to export and have been experimenting with th
-
My clients business buys used equipment on the secondary market that they refurbish & sell. The prices fluctuate pretty dramatically based upon supply and demand; so it really isn't possible to set a standard cost that would be valid throughout the y