Browse the docs

userLogin

Returns the current user's short account name.

Keyboard Maestro: UserLoginID

Details #

userLogin() takes no arguments and returns text: the short account name used to log in, such as ada. It is the name in the home folder's path. For the display name use userName.

Parameters #

Takes 0 arguments. {{ userLogin() }}

Examples #

userLogin()
→
userLogin() == "ada"
→ false

Gotchas #

  • Calling it with an argument is an error: userLogin() takes 0 arguments, got 1.