Skip to content

Instantly share code, notes, and snippets.

@lg0
Created April 20, 2012 15:57
Show Gist options
  • Select an option

  • Save lg0/2429886 to your computer and use it in GitHub Desktop.

Select an option

Save lg0/2429886 to your computer and use it in GitHub Desktop.

Revisions

  1. 缥缈疯 revised this gist Apr 20, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions filename.applescript
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,2 @@
    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)'
    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)
  2. 缥缈疯 created this gist Apr 20, 2012.
    2 changes: 2 additions & 0 deletions filename.applescript
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    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)'