Autoclose Window (w/Applescript)

Discussion in 'PowerPC Macs' started by Hack5190, Oct 24, 2015.

  1. Hack5190 macrumors 6502a


    Oct 21, 2015
    (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.

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

    If you need help converting your Applescript into a standalone app check this link

Share This Page

0 October 24, 2015