set applicationPath to (POSIX path of (path to frontmost application as text)) do shell script "open \"" & applicationPath & "\""