![]() ![]() SolutionĬreate a TextExpander Snippet to copy whatever file I am working on in BBEdit to a new note in EverNote. Make it easy to backup whatever file I am working on in BBEdit into a new note EverNote with the filename as the title of the note. With a some simple AppleScript and TextExpander, I am now able to backup my working document to Evernote. I thought there must be an easy way to backup files that I am working on. In the past, I would just copy the file to the desktop, and as a result, I had a lot of files on my desktop. Because once in a while, when I make some major code changes, I want to back up the existing file in case my change doesn't work. I do a lot of my development work in BBEdit and this would be a very handy thing to have. In this week's post, I want to show how easy it is to create note in EverNote using TextExpander and AppleScript. (Christmas, Black Friday, Inauguration Day, Start of Summer) You could easily modify this to be any countdown that you want. Here's a simple snippet example on showing how many days until the next election. ![]() I believe this makes it easy to remember and reduces the changes that I'll accidentally type the short cut.įeel free to modify the above script to do anything that you want! Days to 2016 Election I assigned abbreviation to be 'desk.image'. List($width, $height, $type, $attr) = getimagesize($result) The splitB圜aps function is useful because it will split the filename, if it's in camelcase format, for the alt text field.Currently the script only supports JPG, but if you do work with only PNG, change the file extensions that's being assigned to the $files variable. ![]() If you upload images in a different directory, then change the path of $public.You can change where the script looks for images by changing the $dir path.This snippet will create an HTML image tag complete with image dimensions and the Alt tag. If your doing work in an editor and want a quick way to add the image tag in your code, this can come in handy. This is a neat piece of code that will create a image tag based on the most recent image on the desktop. In addition, if Apple or Chrome should change the Javascript functionality, I'll only have to change it in one place. I created a rich text snippet for email and Word DocumentĪs you can see, it's really handy to have a couple of base snippets that are being used by other snippets. Very useful when the page title is suitable for a link:Ĭreate the anchor tag with the Chrome URL and put the cursor where I can enter in the link textĬreate a link to the site using the content of the clipboard as the link text These are useful to have as I may want to display the URL differently depending on what applications that I am using. Set theTitle to TITLE of active tab of window 1Īlong with that setup, I have several other Snippets that references the above snippets. Set theURL to URL of active tab of window 1 I have two Snippets setup, one to get the URL and one to get the title of the page: Simple setup to get the URL in TextExpander This is useful when I want to share the URL in an email, Slack or a blog post. Then start re-enabling your Chrome plugins one at a time, paying particular attention to any plugin that manages password fields, as that's likely when you'll see the error message.Using TextExpander and AppleScript, I can easily get the current URL of the Chrome browser. In your case, I would start with disabling all Chrome plugins for a while, checking that you no longer get the notice. password managers) can be the cause, so enable plugins one at a time to test them. If the issue occurs frequently, try launching a minimum number of apps/services on your Mac, and re-launching apps one by one, allowing you to establish which app or service is locking secure input by process of elimination. This can be resolved by restarting your Mac, or logging out fully and logging back in. when you've recently logged into your Mac, or after waking your computer and typing your password). This can be because macOS itself has left the secure input enabled (e.g. The " is preventing text expansion" error message usually makes it easy to identify which application has locked secure input, but when it says Finder, it may be that macOS is unable to establish which app is locking secure input. ![]() It's then the responsibility of the feature/app to release secure entry to allow other apps to listen to keypresses. Secure entry is a feature by which macOS allows an app to say "don't watch my keypresses, this is secure data" (e.g. ![]()
0 Comments
Leave a Reply. |