Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
@sawmaster - not completely sure this is what you're looking for, but you can get the path of the application that is frontmost using a shell command like this:
Code:
osascript -e 'POSIX path of (path to frontmost application)'
 
@sawmaster - not completely sure this is what you're looking for, but you can get the path of the application that is frontmost using a shell command like this:
Code:
osascript -e 'POSIX path of (path to frontmost application)'


I know this topic is old, but i forgot to reply.

I wanted to try to use PHP to get the current app using the shell (i forgot the exact name of it) function in php.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.