Skip to content

Instantly share code, notes, and snippets.

@incidunt
Forked from lg0/filename.applescript
Created November 3, 2018 15:05
Show Gist options
  • Save incidunt/eb5d49f8e510c04c405a25fac2cbfe6c to your computer and use it in GitHub Desktop.
Save incidunt/eb5d49f8e510c04c405a25fac2cbfe6c to your computer and use it in GitHub Desktop.
applescript:get selected filename and extension
tell application "Finder" to set theFile to POSIX path of (selection as alias)
tell application "Finder" to set fileExtension to name extension of (selection as alias)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment