path to application

Hi all,
I’m trying to get the path to front most applciation with the following code but last line shows me the empty dialog. Anybody knows what I’m missing here ?

set quark_path to “” as text

tell application (path to frontmost application as text) to app_path
display dialog app_path buttons {“ok”} default button 1 with icon 1

TIA,
Nima

Hello

I assumes that this one will works better if the script is saved as an application.

If run from the Script Editor, it returns the Script Editor’s path.

set quark_path to "" as text

set app_path to (path to frontmost application as text)
display dialog app_path buttons {"ok"} default button 1 with icon 1

Yvan KOENIG (from FRANCE lundi 16 octobre 2006 20:38:20)