I need to create a script that shows the last login in a windows on the finder

Ferran_Sogas
New Contributor

I have a script that save in a text file the last logins, but I need to show the text file content in a popup window on the finder, with an OK button to close it.

Any idea?

FERRAN SOGAS VIZUETE || B2B Support
Carrer Valencia, nº87, 08029, Barcelona || T. 976 700 016 Ext-211 || M. 627466412 || www.k-tuin.com/empresas

3 REPLIES 3

Phantom5
Contributor II

You can use the last command in Terminal to list the last sessions of specific users. As for showing the information in the Finder, you can use Jamf  Helper to display the list to users.

RaxiaDK
Contributor II

AJPinto
Honored Contributor II

I would probably use Jamf Helper, calling the script with a Launch Agent to display the info you want with the action buttons you desire. Assuming you are wanting the user to see this which is seems like you are wanting.