frontmost application... :(
frontmost application... :(
- Subject: frontmost application... :(
- From: Jean-Christophe Helary <email@hidden>
- Date: Tue, 23 Apr 2019 01:08:47 +0900
tell application "System Events"
tell (process 1 where frontmost is true)
set myName to its name
display dialog myName
end tell
end tell
Obviously, I get the name of the script, when I want the name of the
application that's frontmost before I launch the script... :(
Ultimately, I just want to get the path of the frontmost document of the
frontmost application...
Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden