Autoclose Window (w/Applescript)

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

  1. Hack5190 macrumors 6502a

    Hack5190

    Joined:
    Oct 21, 2015
    Location:
    (UTC-05:00) Cuba
    #1
    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/
     

Share This Page

0 October 24, 2015