Questions tagged [systemevent]

48 questions
-1
votes
2 answers

AppleScript works in Script Editor but not as application

I am pretty new to programming, especially with AppleScript. I wrote a simple script for Valentine's Day to play a song from iTunes and then open a flash animation file in Safari. When I run the script in ScriptEditor, everything works as desired,…
nautilus
  • 3
  • 4
-1
votes
1 answer

System events with vb.net service

I try to create windows service to write events win windows sessionswitch event, but when I make it in windows application it work fine but doesn't work with service. After search I know the system events need message loop enabled so how I can…
-2
votes
1 answer

How to write a script for delete all the logs everytime macos shutdown?

I knew how to delete all the log files with terminal command "sudo rm -r /var/log" but how to set it up for system events, therefore, clear up everytime system shutdown?
1 2 3
4