Skip to content

Instantly share code, notes, and snippets.

@defmech
Created August 14, 2019 12:02
Show Gist options
  • Save defmech/0a155e50c559874dad4aee7b59a3b082 to your computer and use it in GitHub Desktop.
Save defmech/0a155e50c559874dad4aee7b59a3b082 to your computer and use it in GitHub Desktop.
Automator Application to copy a directory list to clipboard.
tell application "Finder"
if exists Finder window 1 then
set currentDir to target of Finder window 1 as alias
else
set currentDir to desktop as alias
end if
end tell
cd "$1"; ls | pbcopy;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment