Created
February 8, 2010 14:26
-
-
Save dannysmith/298177 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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