If only you could control your computer using Siri, life would be so much easier! Well, it turns out you can. In this post, I will explain how this cool hack works.
Please see my updated post here on Medium.
First, you will need a gmail account. I suggest creating a new one, for security issues, as you will have to add your username and password to a simple python script.
Next, navigate to the following on your Apple device, in Settings:
Notes -> Accounts -> Add Account
and add your gmail account.
Then, check the Notes setting. You should also uncheck the other Mail, Contacts and Calendars settings as they aren’t needed.
Click Save, at the top right hand corner.
Ensure that the Default Account Setting is set to the gmail account you created, after navigating back to the home of the Notes settings. Now, you have finished setting up your device.
To check, ask Siri to take a note:
“Note this is awesome”
And you should see your note updated in the Notes app and also under the Notes folder of the new gmail account, after logging in.
You will also need to turn on the setting for access from less secure apps which can be done here, after logging in. Also, you will need to enable IMAP in the gmail settings.
Now, you just need to edit my python script, which can be found here, and insert your username and password, which is self-explanatory, after opening up the script.
The script basically checks for new Notes, every second, after logging into the new gmail account and as you can create a Note with Siri which syncs with your gmail account, you can get the Siri commands on your computer.
That’s it! Just run the script and enjoy controlling your computer using Siri. Here are the commands:
- “Note shutdown”
- “Note search (whatever you want)”
- “Note chrome”
- “Note notepad”
- “Note logoff”
Of course, you could also create your own commands by just editing the voicecommands and shellcommands array.
Also, I suggest renaming file extension to .pyw, after checking that it runs smoothly. This is so that the horrible black console doesn’t appear when running the script.
You could also set the script up to start up on boot. Have fun commanding Siri (and pranking your friends 😀 )!
Please add comments or ask questions below.