Skip to content

Instantly share code, notes, and snippets.

@lg0
Created April 20, 2012 15:57
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save lg0/2429886 to your computer and use it in GitHub Desktop.
Save lg0/2429886 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)
@aristotll
Copy link

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment