Stacks Image 20108

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 2 / 2

Tag:

Sex chromosome papers RSS


Rapid Sex Identification in Spotted Knifejaw (Oplegnathus punctatus) Using tmem88 Gene Structural Variation Markers
Link

N-terminus of Drosophila melanogaster MSL1 is critical for dosage compensation
Link

Development of sex-specific molecular markers for early sex identification in Hippophae gyantsensis based on whole-genome resequencing
Link