Activate bluetooth with applescript.

Hello

I don't know how to use Applescript, but I need to make a script that can activate the bluetooth on my MCP (OS X 10.11.1).) I can copy paste the script! Thank you much for the help!

Hi lolofo777. One option is to download and install the Frederik Seiffert blueutil command-line utility to run from Terminal or use it in an AppleScript script. Blueutil moved to/usr/local/bin/blueutil. In the Terminal, you can use one of the three commands to check the status of the Bluetooth technology to see if it is enabled or disabled, turn Bluetooth on or off Bluetooth:

blueutil status

blueutil on

blueutil off

In an AppleScript script, you can use one of the following three commands to do the same thing:

the shell script ' / usr/local/bin/blueutil status. "

the shell script ' / usr/local/bin/blueutil on. "

the shell script ' / usr/local/bin/blueutil off. "

If you want an AppleScript to toggle between on and off the power States of Bluetooth, you can use:

Blueutil set ' / usr/local/bin/blueutil»

shell script blueutil & 'status '.

Set statusResult to the result

If statusResult is ' status: on "then

shell script blueutil & 'off '.

Otherwise, if statusResult is ' status: stop "then

shell script blueutil & 'works '.

end if

You can download the Applescript above from this Dropbox link: blueutil.scpt. Tested with OS X El Capitan 10.11.2 and OS X Yosemite 10.10.5.

Tags: Mac OS & System Software

Similar Questions

  • How to activate bluetooth constantly?

    Hello

    I have a Libretto U100 and I would like to activate bluetooth constantly, but at present every time that I reboot it isn't always.

    The result I want is that the wifi & bluetooth to be turned on permanently.

    Thank you for your help.

    Hello

    As you can see sometimes you expect an answer or suggestion. ;) Maybe the forum booklet is not so active as other areas. While you wait you can consult the directories user's to see if you can find something.

    Anyway, I'm not a technician but AFAIK you should leave permanent WLAN switch in POSITION and before you want to use just check BT with the FN + F8 key combination if the BT is enabled. I think that BT may not be permanently.

  • Satellite C50 - can't activate Bluetooth!

    I just bought a laptop Satellite C50 64-bit with windows pre-installed 8.1.
    According to the specifications of the product, it has integrated bluetooth (using the Qualcomm Atheros AR956x Wireless Network Adapter?) But I can't find a way to activate. I've been in PC configuration-> PC and peripherals, but bluetooth is not listed there.

    However, in flight Mode I have seen bluetooth with a slide on/off switch button but it is grayed out so I can't activate it. What can I do now? Help, please. I'm desperate. Would be very grateful for any * I can follow simple instructions - I'm not a geek!

    Thank you.

    Before you begin to discuss your problem can you please post the exact model name or the full model number so that we can check the specifications for your model of laptop.

  • How to activate bluetooth on Satellite Pro C850?

    Hello

    I'm having trouble if/how understanding I can activate Bluetooth on my Satellite C850D-12V (PSCC2E - 03300JEN). The operating system is Windows 8-64 bit.

    The technique of the product (http://www.toshiba.co.uk/discontinued-products/satellite-c850d-12v/) does not BT then, first of all, I would appreciate advice on how to check whether my laptop is equipped with BT

    If my laptop has the necessary equipment, should it be activated via the download of a driver (e.g. Realtek Bluetooth Filter Driver Package, version 12.24.0802.2012)?

    If my laptop is not equipped BT, this can be solved with a BT USB adapter? What would the specification required for a USB BT dongle? Do I still need to download a driver?

    I apologize for the issues. Despite my attempts to research answers to myself, I'm from very limited in this area.

    Any advice greatly appreciated.

    Thank you very much

    Hi Dino

    Your machine according to the specifications of the laptop has no BT module so you have to use the external device. Best solution is BT USB dongle. Visit the nearest PC store and there you can choose one that fits. Talk to your local dealer and I m sure they can help you make the right decision.

    Usually, when you buy external device driver is included for installation should be pretty easy and user-friendly.

    And please do not apologize for your basic questions. ;) If you have any other questions you are welcome.

  • How to activate Bluetooth on Satellite P200

    Hello

    I bought a new computer Toshiba Satellite P200 - 1C7 and I do not see where I can activate bluetooth.
    I installed bluetooth monitor and download bluetooth stack.

    On the Web from Toshiba site, explained that we need to check the presence of bluetooth inside by the letter B after the number of PCs under him, but I can read BT HD L M W so I think bluetooth is in the computer.

    So can you tell me if it is or not the case and if it is Yes, how to enable it.

    Thank you very much for your answer.

    Hi Emilie

    Firstly you can activate and use the only if BT it s is available on your laptop.

    Therefore, you should check if your laptop is equipped with the BT module.

    If the BT module has been installed, then you should find a BT tag at the bottom of the unit.

    I guess that you will not find this label because your device was not equipped with internal BT module.

    See you soon

  • Activate Bluetooth Vista

    How do you turn on Bluetooth on Vista 64.  I have the ear piece. How can you PAIR the Vista OS and Bluetooth receiver headset?

    Hi preferred,

    Thanks for posting in Microsoft Communities. The problem description, I understand you want to activate Bluetooth headset.

    I suggest you to follow the steps in the article and check.

    Set up a Bluetooth compatible device

    For more information, please see these articles.

    Change settings for a Bluetooth compatible device

    The problems with Bluetooth devices

    I hope this helps. Let us know if you need more assistance.

    Thank you.

  • Advent 6651 activate bluetooth no icon not showing in Panel, no options to correct

    My laptop Advent 6651 Windows Vista does not appear the Bluetooth icon in the control panel I have to activate Bluetooth to connect to my cell phone how can I do this

    Hello

    do not post in all capitals

    your head is all lowercase, then why do all the capitals in the body of your message?

    It makes it so difficult to read

    read this

    read these tutorials on how to set up bluetooth

    http://www.vista4beginners.com/how-to-setup-a-Bluetooth-connection

    http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-a-Bluetooth-enabled-device

    Here are solutions to some common problems with Bluetooth devices.

    You can also try a convenience store for diagnose and fix common problems with equipment and devices running.

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-Bluetooth-enabled-devices

    If the above don't fix contact the hardware manufacturer or contact the manufacturer of your computer

  • Receiving data using the device RFCOMM Protocol activate bluetooth

    Hi all

    I want to apply that receive the data of bluetooth device using the RFCOMM Protocol.

    I'm pasting some of my code

    Server StreamConnectionNotifier = null, Server1 = null, server2 = null;

    Hi all

    Can some body having any idea or sample code to receive data using the for Bluetooth RFCOMM Protocol. I am able to find a device to activate bluetooth and also connect with it.

    And ther eis a problem plus I only magnified device does not form some sort of link (link Url SPP, OPP Url link, etc.) for bluetooth.

    But I can verify that this device is correct because I am able to receive data from this device to my computer by checking the connection port and to open this port.

  • How to activate bluetooth connect phone Nokia 5130 c-2?

    I don't have a Bluetooth network with windows 7 model p6214y connection. How to activate Bluetooth so I can connect my phone Nokia 5130 c-2?

    Original title: Bluetooth

    If your computer did not come with Bluetooth radio at all (common for budget computers), there is no way that you can download the software to activate Bluetooth as the signal must be sent by the radio. check the list of items on your receipt.

    You can get a USB Bluetooth stick to connect a Bluetooth car radio to your computer. You can or may not need to install additional software, depending on whether or not the manufacturer choose to support generic Microsoft driver.
  • Activate Bluetooth on Lenovo T400 or T500?

    I have a laptop of Lenovo T500 (2242) on which I clean installed Windows 8 Pro. It has bluetooth inside hardware, and worked well in Vista and Windows 7, although I needed software "Logins" Lenovo to turn on the bluetooth radio. And by that I mean actually turn it on so that the operating system could see it and use it. If she had died through dial-up connections (more precisely, the FNF5 utility included), then the operating system nor the rest of the su same logins that the card was present. There is no specific hardware for this switch. There is a switch to turn on/off, I keep in the position "on" at any time WiFi.

    Now in Windows 8, I can't turn on the Bluetooth card. It is enabled in the BIOS. I see the Bluetooth light turns on during the portion of the BIOS to boot, but as soon as Windows starts, the indicator turns off, and Windows doesn't seem to know that the card is present. I installed the following driver or software modules in my attempts to solve this problem:
    1. Bluetooth with Enhanced Data Rate software II for Windows 7 (32 bit, 64 bit), Vista (32-bit, 64-bit) - ThinkPad (in fact it has not installed; WIN8 warned it is incompatible and directed me to the site of Broadcom; (See #4).
    2. ThinkVantage Access Connections for Windows 7 (32 bit, 64 bit) - laptops (installs, but there's no help - the software runs, but doesn't say anything on bluetooth technology)
    3. Integration of features Hotkey for Windows 8 (32-bit, 64-bit), 7 (32 bit, 64 bit), Vista (32 bit, 64 bit), XP (32-bit, 64-bit) and 2000 - ThinkPad (installs, but keys such as Fn + F5 don't produce any action at all).
    4. Broadcom bluetooth drivers Installer Package. The Setup program tries to find a bluetooth device installed. It fails. Apparently because the card is not activated!
    None helped at all. There is no evidence that the Bluetooth card is installed.
    In other forums, I saw advice to activate the Bluetooth card in the Win8-style control panel 'PC to change the settings. It is not there; See this image for confirmation.
    Can someone help me get this stupid operational bluetooth? I have included "T400" in the title because the T400 and T500 were essentially the same computer - just has a larger size of the screen and the frame to the other.
    Thank you for your consideration.

    Hello

    Lenovo released Hotkey features integration on April 30, 2013. I installed, but it did not help in my case.
    I manually browsed to the extraction folder (in my case C:\DRIVERS\HOTKEY\OSD\F5-8M) and found the file "TpFnF5.exe". It does exactly what I need - manages all radios. I guess that Windows 8 has taken control of Fn + F5, which initially should launch this application.
    It will be useful.
    PS: C:\DRIVERS\HOTKEY\OSD\F5 is a similar application, but without 'Airplane Mode' switch.

    Mantas

  • HOW to aCER pb ACTIVATE BLUETOOTH ON MY WINDOWS 8

    HOW to aCER pb ACTIVATE BLUETOOTH ON MY WINDOWS 8

    Hi Michael,

    Thanks for posting your query in Microsoft Community.

    Please refer to the steps below and check.

    1. Press on the Windows () touch + C, or by scanning from the right edge of the screen to open your charms.
    2. Select the charm of settings and then click change PC settings.
    3. Click on PC and devices and select Bluetooth.
    4. Move the switch to toggle Bluetooth for.

    Hope this information is useful. Please feel free to answer in the case where you are facing in the future other problems with Windows.

  • How to activate Bluetooth for Acer aspire E1 - 571.

    Original title: Bluetooth for acer aspire E1 - 571

    I recently got a new computer and am wondering how to activate Bluetooth. It is an Acer Aspire E1 - 571 equipped with windows 8 whenever I go settings > change PC settings > wireless, Bluetooth button doesn't click or drag. If there is a way for me to turn it on can you let me know? And also, if there is a shortcut to turn Bluetooth on and off could you let me know about it too please, thanks.

    Hello

    Acer Aspire E1-571 seems to have integrated Bluetooth connectivity. You can press Fn + F3 to activate the Bluetooth on the computer.

    You can also check with the Support of Acer and see if the keys are located to activate Bluetooth.

    We can also refer to the articles and check if it helps to activate Bluetooth.

    Add, remove, and manage your devices and printers

    Why Windows is not find my wireless device?

    You can also try to launch the Windows updates and install all the updates that are available including the driver in option and updates of firmware for the computer.

    Windows Update: frequently asked Questions

    You can also visit the Acer support website to install the latest version of the Bluetooth drivers and check.

    Hope the helps of information. Let us know if you need help with Windows related issues. We will be happy to help you.

  • Can I connect more than one headset bluetooth with Apple TV 4?

    Can I connect more than one headset bluetooth with Apple TV 4?

    No, sorry. This is a limitation for all devices Bluetooth headset.

  • Loose-leaf in number with AppleScript

    Is it possible to move a sheet of numbers e.g. move it left or to right or before / after a roadmap or even copy to a location (as in the list of sheets) and delete the original with AppleScript? Thank you.

    you mean likein this article ?

    Jason

  • How can I use your bluetooth with my Satellite L650D - 14L devices?

    Please can someone help me on how I can use your bluetooth with my Satellite L650D - 14L devices?
    I don't see a bluetooth icon helping manange bluetooth connections.

    Thanks for your help.
    Concerning

    Hello

    You cannot connect any BT device for this laptop because it was not equipped with any BT module.
    BT is therefore not available for this device.

Maybe you are looking for

  • Definition by tab order program?

    Hello If I add controls using NewCtrl (.) or DuplicateCtrl (.) to an already existing group I have loaded with LoadPanel (.), is it possible to change the sequence of commands are cycled through when you use the tab key (or insert new controls where

  • Manuals Menus move when using, do scroll effects

    I'm just using the default menu system Muse. 2015.2 version of MuseI have a problem with the vertical on my site, when I hover over a top-level menu item, the dropdown as usual sub elements. However when I move my mouse back to the higher level, sup

  • Error in extended collection

    Hi gurusThis question is for my purpose of learning and appreciate if someone delete error.Code exampleCREATE TYPE plch_food_t AS OBJECT(name VARCHAR2 (100),food_group VARCHAR2 (100),color VARCHAR2 (100));/Set serveroutput onDECLAREl_broccoli plch_fo

  • Unable to load the file mboot.c32 COM32?

    Hello people,I create a PXE installation method without support for vSphere 5.5 using syslinux 5.01 (and 6.03).I copied the following files in my home directory of c:\pxeboot.-mboot.c32-pxelinux.0-libutil.c32-ldlinux.c32I also have a default configur

  • How to export a textured animation of Photoshop?

    If I have a textured, and animated character how to export as it seems? If I export a movie, it shows just a white character animated on black background.