Stacks Image 16072

For Academics

Finder tips

Tips to use the Mac Finder effectively

Show/hide hidden files

In terminal

ls -la 

But there is also a shortcut in the Finder

Hidden files

CMD SHIFT .

New file here

Press a shortcut and make a file based on a selection of templates (kept in Dropbox, for access in multiple computers). Very useful for files you need to create all the time. There is a Keyboard Maestro template for this here.

Move selected files to chosen folder

Select files, trigger shortcut and move files to pre-determined location. The macro starts from a given finder location for flexibility. One can make multiple versions of it for a quick selection of finder locations. Eg for filing receipts, zip files to send to Dropbox, downloaded manuscript pdfs etc.

If the location already contains a file with the same name, the macro will fail. This is one way to overwrite the files.

Open terminal window at Finder location

In combination with the cdf alias, it allows to jump back and forth between the Finder and the terminal effortlessly.

It requires Keyboard Maestro.

KM setup for opening a new file at Finder location.

The text to the Shell script is

#!/usr/bin/osascript
tell application "Finder" to set theDIR to insertion location as alias
tell application "iTerm2"
   create window with default profile
   tell front window
      tell current session
         write text ("cd " & "\"" & POSIX path of theDIR & "\"")
      end tell
   end tell
end tell

Get path to selected Finder file in clipboard

This is a very fast way of getting using a new file in a script.

It requires Keyboard Maestro.

KM setup for copying the path of selected file to clipboard.
Previous Post 12 / 49 Post

Tag:

Sex chromosome twitter bot

Mimulus twitter bot

Silene twitter bot

I setup the sexChr_papers twitter bot following Rob Lanfear's instructions.

I am interested in papers on sex chromosome evolution, and thus remove medical search terms. The pubmed search is sex chromosome NOT aneuploidy NOT patient? NOT chronic NOT acute NOT clinical NOT prenatal NOT diagnostic NOT congenital NOT infant? NOT syndrome NOT trisom* NOT sperm.

Casey Bergman is gathering literature Twitter bots here.