Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Applescript using terminal command "Last" output to a text file

I would like to have a script that executes the last command ( do shell script "last" ) and save the result as a text file to the desktop for whichever user runs the file.


Thanks.

Posted on Aug 26, 2015 10:19 AM

Reply
Question marked as Best reply

Posted on Aug 26, 2015 10:22 AM

Here:


do shell script "last > ~/Desktop/last.txt"


(132380)

2 replies

Applescript using terminal command "Last" output to a text file

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.