Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Classic Macs and Mac OS > A peculiar Script

A peculiar Script
Thread Tools
Junior Member
Join Date: Jan 2000
Location: uk
Status: Offline
Reply With Quote
Jan 29, 2002, 03:08 PM
Ever since I installed extra RAM in my iMAC my monitor has been acting strangeley. Presumably someting shifted when I turned the iMAC onto its' screen. With the result that often the computer starts with a very dark or completely black screen. Obviously I can't work with such a screen and too many times I need to use the reset button to restart the machine - which is something I hate having to do.
So I figured that if I could programme a function key to do the shutdown for me I could save my HD a lot of grief. All I need is a script that I can link to the f-key. Does anybody know how to write such a script? (Or is there an existing keyboard shortcut that I don't know about?)


Forum Regular
Join Date: Feb 2001
Status: Offline
Reply With Quote
Jan 29, 2002, 11:43 PM
Keyboard shortcut: Control+Power, and push Enter at the beep on Mac OS 9. In Mac OS X, it still works, but there's no beep.

Or, use this script:

tell app "Finder"
shut down
end tell

Save it as an application and assign it to a F-key.

Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Privacy Policy
All times are GMT -4. The time now is 12:34 AM.
All contents of these forums © 1995-2015 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2015, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2