Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Hack5190

macrumors 6502a
Original poster
Oct 21, 2015
531
311
(UTC-05:00) Cuba
Have a startup program that you need to close each time you boot / login?

Because I use a 3rd party USB wireless adapter on my G5, Leopard doesn't recognize the adapter without a 3rd party wireless program. That programs requires no interaction other than closing it. So I wrote the below Applescript to solve this.

delay6
tellapplication"System Events"totellprocess"Ralink Wireless Utility"
clickbutton1ofwindow1-- or window "Wireless Utility"
endtell

If you need help converting your Applescript into a standalone app check this link
http://www.creativecongo.com/mac-tips-how-to-run-applescripts-at-login/
 
  • Like
Reactions: Altemose
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.