Jake Kara — Writer, designer, programmer
Home > Blog > Idiot loop: Why using a shutdown Applescript is a bad idea in 10.7

Idiot loop: Why using a shutdown Applescript is a bad idea in 10.7

Posted by jake on December 3, 2011

I upgraded to OS X Lion (10.7) recently, only to boot up, login, and have my computer shut right back off again. Booted up, logged in — same thing.

I logged in with a different account on the same computer, and it didn't have a problem. The computer ran fine.

I couldn't help but think about the old computer geek prank of writing a startup script to auto-run at login. Then it occurred to me: I always use an Applescript on my desktop to shut down instead of choosing " > Shut Down." However, Lion has this nifty set of functions called "resume" that opens programs up to the same state they were in when you closed them. Another feature is that it opens whatever files you had opened when you logged out/shut down. Since the last file I had opened was the shutdown Applescript, that was the first thing it opened every time I logged in. So I had pulled a prank on myself.

Well, I patted myself on the back for realizing what the problem was, but I still had to fix it. I opted to open up Terminal, login as root and delete the file, since the account I had logged into the desktop as did not have access to it. Logged out, logged in with my main account, not auto-shutdown. Problem solved.

Comments:

Posted by Rita on
Jens sagt:Hallo Sawyer,probiere es doch mal wie folgt:Ziehe Dir GeekTool in Dein Dock.Klicke mit der rtcehen Maustaste darauf und wähle im Kontextmenü den Eintrag”Optionen”.Nun kannst Du selbst bestimmen, auf welchem Schreibtisch das App auftaucht.Oder meinst Du die erstellten Geeklets sollen auf den verschiedenen Schreibtsichen unterschiedlich sein?Dann versuche es mal wie folgt: Lege für die Geeklets auf jedem Schreibtisch jeweils eine Gruppe an (also Schreibtisch1=Gruppe1, Schreibtisch2=Gruppe2 usw.).Aktiviere die gewünschte Gruppe jeweils auf dem jeweiligen Schreibtisch.
Leave a Reply



(Your email will not be publicly displayed.)

Please type the letters and numbers shown in the image.Captcha CodeClick the image to see another captcha.