Current application's properties: a bug in Yosemite?

Hi,
in OS X 10.10, running the following script in Script Editor:


log current application's id
log current application's name
log current application's version
set x to current application's id
log x
set x to current application's name
log x
set x to current application's version
log x

produces the following output:

This looks like a bug to me. Or am I missing something? Is the output different in previous releases (unfortunately, I can’t check).

Hi,

it could be that set [variable] to uses the implicit get command, and log does not


log (get current application's id)
log (get current application's name)
log (get current application's version)

Alternate scheme :

current application's id
log result
current application's name
log result
current application's version
log result
set x to current application's id
log x
set x to current application's name
log x
set x to current application's version
log x

It’s an old feature existing long before Yosemite.

Yvan KOENIG (VALLAURIS, France) mardi 28 octobre 2014 14:18:40

If you save the script and give it a name, then you can get the name in Script Editor:

name of me

→ “NameTest”

Otherwise it gives you the name of the auto-saved file that lurks somewhere in the dark recesses of the machine.