Skip to content

Instantly share code, notes, and snippets.

@dannysmith
Created February 8, 2010 14:26
Show Gist options
  • Save dannysmith/298177 to your computer and use it in GitHub Desktop.
Save dannysmith/298177 to your computer and use it in GitHub Desktop.
set value to the name of (info for (path to frontmost application))
if value contains "." then
repeat until last character of value = "."
set total to count (character of value)
set value to characters 1 through (total - 1) of value as text
end repeat
set total to count (character of value)
set value to characters 1 through (total - 1) of value as text
end if
return value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment