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 > Apple Script

Apple Script
Thread Tools
Addicted to MacNN
Join Date: Dec 2000
Location: Maine
Status: Offline
Reply With Quote
Feb 17, 2001, 04:09 PM
 
Does anyone know the an apple script to turn one of the F keys (on the pro key board) into an off power button I found it once but can't find the script again after a trashed it by mistake. Thanks

------------------
I Have a Super Computer

I GOT WASTED WITH PHIL SHERRY!!!
     
Clinically Insane
Join Date: Dec 1999
Status: Offline
Reply With Quote
Feb 17, 2001, 07:09 PM
 
Here, make your own:

tell application "Finder"
shutdown
end tell


No fancy dialog, but it works.
"…I contend that we are both atheists. I just believe in one fewer god than
you do. When you understand why you dismiss all the other possible gods,
you will understand why I dismiss yours." - Stephen F. Roberts
     
G4ME  (op)
Addicted to MacNN
Join Date: Dec 2000
Location: Maine
Status: Offline
Reply With Quote
Feb 18, 2001, 11:19 AM
 
I tryed that but it gives me a pop up window with the title bar as result and in the window it just says shutdown and nothing happens. Am I missing a step or just not typing it incorrectly


------------------
I Have a Super Computer

I GOT WASTED WITH PHIL SHERRY!!!
     
Grizzled Veteran
Join Date: Mar 2000
Location: Massachusetts, USA
Status: Offline
Reply With Quote
Feb 18, 2001, 01:21 PM
 
The above script will not work. Quitiing the Finder will not shut down the computer. The Finder will quit and open again at the next point you have no applications open.

[This message has been edited by spicyjeff (edited 02-18-2001).]
     
Forum Regular
Join Date: Feb 2001
Status: Offline
Reply With Quote
Feb 18, 2001, 02:31 PM
 
The script does work, but you will need to save it as an application. You also need to put a space between shut and down.
     
G4ME  (op)
Addicted to MacNN
Join Date: Dec 2000
Location: Maine
Status: Offline
Reply With Quote
Feb 18, 2001, 09:52 PM
 
I tried to put a space bettween and now it says that I the finder won't shut down because the application apple script is open and I can't run the script when it isn't open How do you save it as an application

------------------
I Have a Super Computer

I GOT WASTED WITH PHIL SHERRY!!!
     
Forum Regular
Join Date: Dec 2000
Location: Albq. NM usa
Status: Offline
Reply With Quote
Feb 18, 2001, 10:09 PM
 
File menu-Save As-Give it name and under that there is a pull down menu. Choose Classic Applet, don't show the startup screen. then assign it to your Fkey
Carpé Bandwidth
     
   
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
Top
Privacy Policy
All times are GMT -4. The time now is 06:56 PM.
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