Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by amoose136

  1. from __future__ import print_function print('{:.2f}'.format(42.022345545456)) Will return 42.02 You could you pyperclip to write to the clipboard or pass the object along to the Alfred clipboard object. Dean Jackson's Alfred-Workflow library can handle the interface with Alfred if you need more complexity.
  2. As of the most recent update today (2.2), the number format checking has been removed. Adding it was based on some falsehoods. I also implemented a workaround for an Apple Event Handler failure that occasionally appears in recent macOS updates and causes FaceTime to open instead of contact calling to happen. A complete python rewrite is in the works to fix some of the bigger issues.
  3. So I was hopeful you might have found a better way of finding contacts but it looks like you're still using my script almost verbatim right now. My way works but it's necessarily slow (I even had to add that .5 s delay in there for stability) and doesn't handle multiple numbers on a single contact or allow you to set the results' icons to their corresponding contact pictures if they have one. Stay tuned though because I'm rewriting mine currently in python to handle these cases.
  4. Although I think it usually best if options are accessed through workflow feedback and keyboard controls, would it be possible to add support for notifications with response buttons to Notify.app? For some options you might want to deliberately slow down a choice if the script/workflow is about to do something that will take a lot of resources. In the apple developer documentation examples (see (void)showNotificationAlert) it doesn't look like it's that hard to create notifications with buttons.
  5. Thanks for the report. I can replicate the behavior but it's not so clear how to fix it. It would probably require some sort of AppleScript to be inserted just before the result block but I don't know if I can check if the contact/number is already open or not. I'll investigate more into the matter.
  6. Very useful but outputting json like that doesn't appear to change the env variables that are stored. For most workflow variables this is fine but for some that don't need to be updated every call you need persistent storage. To do that I have been (in python) doing: import plistlib as pl bar = new_variable_content temp = pl.readPlist('info.plist') temp['variables']['foo'] = bar pl.writePlist(temp,'info.plist')
  7. All that should happen when you type im Tonya or use a phone number is it should open Messages with a message to Tonya in focus. If messages doesn't open then typing the message and hitting enter will do nothing. Out of curiosity, what happens if you route the immediate output of the bottom triggers (just before the save initial query block but after the applescript block) to a "Display Big Type" output? If nothing displays it's very broken indeed. It should display the number but all the formatting should be there. If that works then check the output at the "saved cleaned query" step. I cu
  8. The proper usage is in **A**. Numbers must be formatted with 10 or 11 digits as per US rules but it's easily changed to suit your region. If you type im 1234567890 or im 12345678901 or sms 1234567890 or sms 12345678901 or assuming Franz Schubert is in your contacts and has a number containing 10 or 11 digits once other characters are removed, sms Franz Schubert or im Franz Schubert It should work. I don't know why no error message appeared though. I might make it possible to set your area code/region in the future and then it will prepend your area code when texting if it's no
  9. It was designed for use in the US but it should be easy to change for other countries. The two yellow magnifying glasses check length. The top one checks for numbers of length 7 (xxx-xxxx) plus an optional 3 or 4 digits in front for country codes (+x-(xxx)-..., (xxx)-....). The for text messages area codes are required in the US so it only checks that numbers are 10 or 11 digits long. (+x-(xxx)-xxx-xxxx or (xxx)-xxx-xxxx). You should be able to modify the parts in the brackets to make it work for Czech numbers or anywhere else in the world. Another option is to just by pass the error checking
  10. I was unhappy with the Alfred support for Continuity/Handoff calling via iPhone so I created this. It integrates with contacts. Use commands call [contact name or arbitrary number] and sms [contact name or arbitrary number] to make it work. 'im' is an alias of 'sms'. New in version 2 Faster than before Supports entering in numeric numbers also Now has primitive error checking. You should see the Facetime application pop up less. More hack-able FIXED: If Contacts isn't open when the command is invoked it will now close itself afterward
  11. I found myself chatting with people from time to time and needing to send equations. Obviously when Latex is available it's preferable but sometimes it's not. As a result I need a solution that requires zero installs but formats text a little better than you can get with the standard characters on the keyboard. Example: let's not say x^2 but x². Let's not say sqrt(x) but √(x). I want to be able to do this without looking up characters in a character table and I don't want it to add to how much I have to type much. Enter snippets. They allow for decently complex notation without needing L
  • Create New...