Fun way to get your system info!

Ok, so most of this script is semi useless. Basically it displays your system profile info in a fun “terminal” kind of way using text edit :smiley:

Just try it out for kicks :stuck_out_tongue:

property the_password : "yourpasswordhere" --make up your own password here!
set system_info to do shell script "/usr/sbin/system_profiler "
set user_name to text returned of (display dialog "Please enter your username." default answer "")
if user_name is equal to "" then
	set user_name to "User"
end if
repeat
	set user_pass to text returned of (display dialog "Please enter your password." default answer "" with hidden answer)
	
	if not user_pass = the_password then
		display dialog "Access Denied"
	else
		display dialog "Access Granted"
		tell application "TextEdit"
			activate
			close every document saving no
			make new document
			set the name of window 1 to "System Info"
			repeat 3 times
				set the text of the front document to ¬
					"Loading"
				delay 0.5
				set the text of the front document to ¬
					"Loading."
				delay 0.5
				set the text of the front document to ¬
					"Loading.."
				delay 0.5
				set the text of the front document to ¬
					"Loading..."
				delay 0.5
			end repeat
			set the text of the front document to ¬
				"Finished Loading"
			delay 1.5
			set the text of the front document to ¬
				"Hello " & user_name & "."
			delay 3
			set the text of the front document to ¬
				"Here is your systems info:"
			delay 2
			set the text of the front document to system_info
			exit repeat
			
		end tell
	end if
end repeat

Would love to see some improvements to make it cooler or more fun :stuck_out_tongue:

Nice one! :slight_smile:

thanks :smiley:

Wow, I like that, it’s pretty cool :slight_smile:

The problem, it says Loading… while it’s done loading. Why not say “Loading” and then do the shell script. People know that it’s loading and you don’t need to do the impossible, or multi-task. :smiley:

property the_password : "pass" --make up your own password here!
set user_name to text returned of (display dialog "Please enter your username." default answer "")
if user_name is equal to "" then
	set user_name to "User"
end if
set user_pass to text returned of (display dialog "Please enter your password." default answer "" with hidden answer)

if not user_pass = the_password then
	display dialog "Access Denied"
else
	display dialog "Access Granted"
	tell application "TextEdit"
		activate
		close every document saving no
		make new document
		set the name of window 1 to "System Info"
		set the text of the front document to ¬
			"Loading"
		set system_info to do shell script "/usr/sbin/system_profiler "
		set the text of the front document to ¬
			"Finished Loading"
		delay 1.5
		set the text of the front document to ¬
			"Hello " & user_name & "."
		delay 3
		set the text of the front document to ¬
			"Here is your systems info:"
		delay 2
		set the text of the front document to system_info
	end tell
end if