I have a simple Automator script that is setup to run as a login item. The Automator scripts plays a .wav file as follows:
afplay "/Users/Audio Files/system_alert.wav"
This works perfectly however I am looking to refine it to play on just the initial login of a user vs subsequent logins due to the system being either manually locked or automatically locking. I am currently running OS X 10.8.1 Mountain Lion. Is this somehow possible? I have Googled around and have not found much in the way of obvious options.