I got it but it’s awful.
tell application "System Events" (file of every process whose frontmost is true) first item of result POSIX path of result tell me to POSIX file result set __frontApp to result as text end tell
You may try to concatenate the different instructions to reduce their number.
Alternate structure to get rid of "tell me to" :
tell application "System Events" (file of every process whose frontmost is true) first item of result POSIX path of result end tell POSIX file result set __frontApp to result as text
I assume that the failure is due to the "tell me to" required when we execute all the instructions into the tell application "System Events" block.
Is it a deliberate behavior or a bug ? Honestly I don’t know. I’m a bit tired to file reports with no result.
Yvan KOENIG (VALLAURIS, France) mercredi 17 septembre 2014 10:01:03
|