|
|
Modify script to quit Classic
Why not let the user decide whether to quit Classic upon discovering that it is running:
tell application "Finder"Unfortunately, the way AppleScript seems to work in OS X, you have to bring the finder to the front for that dialog box to appear.
Nice!
Better than "The Classic Environment" freeware script.
Modify script to quit Classic
Better still, why not let the user decide either way? I don't really know Applescript very well, but it looks like you can do something like this:
tell application "Finder"Alternatively, you should be able to poll classic through the terminal: [localhost Sat 7:22:21pm ~]% ps aux | grep Classici.e. bring up a list of all running processes & filter it down to just ones realted to Classic. If you have anything running, then Classic must be running. If the only hit you get is the grep command (which doesn't always show up) then Classic isn't running. I haven't tried to wrap this up in a pretty script that will bring Classic up or down, partly because I'm lazy (I just want to know if it might need launching or halting, and don't mind going elsewhere to do it if so, in this case), and partly because I'm not sure how to do it from the shell anyway. I think you can just open a classic application & trick it into opening, and it might be kosher to "sudo kill -9" any Classic processes you find (???), but I'm not sure how good either of these solutions are, and since the point here is just to ask, not to do anything about the answer, then it's sufficient for me.
Modify script to quit Classic
Gah, you beat me to it! I blame my wife, "Hurry up, dinner's ready!" Geez.
I've also modified the script to offer the other option, grab it ready to go, here: ClassicCheck
new non auditable spin on this latest variant
thanks a lot. i put the script in the Dock and also in the Script Menu. it works 99% of the time. but occasionaly i have to force quit it. then re-run the script again and it works every time. also this latest version of the script will bring the finder to the foreground so you do not have to click the finder. dont know why as there is no difference to the tell command. i edited it a tad, took out the "say" here is my edited version.
tell application "Finder"it works great! thanks to all that have contributed to making this script even better and more functional than the one rob originally posted. Ken Edwards ken@meancode.com
just added restart
just modified the script with a restart option, if someone needs that
just grab it here
just added restart
Saved As Run Only means I can't edit your choices. An application with out startup screen is enough.
just added restart
Great!Thanks Ben |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.16 seconds |
|