查看: 1603|回复: 7
|
关机 Count Down Timer 疑问 [60秒的dialog box]
[复制链接]
|
|
本帖最后由 肯多纳 于 22-11-2010 11:11 PM 编辑
1. 请问有谁知道当我要shutdown的时候,如何disable掉60seconds countdown timer吗? (是按shutdown之后会有一个dialog box出来60 seconds remaining的?我想disable掉它.)
2. 有没有办法可以set 自动开机 once power is on?我只是找到restart automatically after a power failure. 如果这样的话我的mac不就会很伤?
我用的是新的mac mini.
感激你...
补充一下,因为这是放在public的,所以没有keyboard的,auto shutdown和startup. 有办法吗? |
|
|
|
|
|
|
|
发表于 22-11-2010 04:32 PM
|
显示全部楼层
Quicker (dialog box):
- (restart) Control-Eject then R ( ⌃⏏ then R )
- (sleep) Control-Eject then S ( ⌃⏏ then S )
- (cancel) Control-Eject then Command-dot ( ⌃⏏ then ⌘. )
- (shut down) Control-Eject then Return ( ⌃⏏ then ↩ )
Even quicker (no dialog box):
- (restart) Control-Command-Eject ( ⌃⌘⏏ )
- (sleep) Option-Command-Eject ( ⌥⌘⏏ )
- (shut down) Control-Option-Command-Eject ( ⌃⌥⌘⏏ ) |
|
|
|
|
|
|
|

楼主 |
发表于 22-11-2010 05:06 PM
|
显示全部楼层
回复 2# sora86
谢谢你,
补充一下,因为这是放在public的,所以没有keyboard的,auto shutdown和startup. 有办法吗? |
|
|
|
|
|
|
|
发表于 22-11-2010 07:53 PM
|
显示全部楼层
built-in就有了, 去sys pref -> energy saver -> schedule
 |
|
|
|
|
|
|
|

楼主 |
发表于 22-11-2010 10:26 PM
|
显示全部楼层
本帖最后由 肯多纳 于 22-11-2010 10:28 PM 编辑
回复 4# DCnuke
那只是schedule它的shutdown时间... 可能表达不好... 是按shutdown之后会有一个dialog box出来60 seconds remaining的对吗?我想disable掉它.

找到了,不过要10.99pounds. >< [automatically close dialog after......]
btw,找到一个scripts,不懂可以用没有...明天试下... 
- How many seconds before we remove the shutdown notice?
property pIntTimeout : 3
property pIntTimeAmount : ""
property pDateGoal : ""
on run
set pDateGoal to ""
set blnValid to false
repeat until blnValid
set recDialog to display dialog "Enter in how many minutes until the computer shuts down?" default answer pIntTimeAmount buttons {"Cancel", "Ok"} default button 2
try
set pIntTimeAmount to text returned of recDialog as integer
if (pIntTimeAmount > 0) then
set blnValid to true
else
error
end if
on error
display dialog "Invalid Number - Numbers must be integers and greater than 0" buttons {"Ok"} default button 1
end try
end repeat
set strMinute to " minute"
if (pIntTimeAmount > 1) then set strMinute to strMinute & "s"
display dialog "The computer will shutdown in " & pIntTimeAmount & strMinute & "!" buttons {"Ok"} default button 1 giving up after pIntTimeout
set pDateGoal to (current date) + (pIntTimeAmount * 60)
end run
on idle
try
if ((current date) >= pDateGoal) then
tell application "Finder" to shut down
end if
end try
return 1
end idle
--- |
|
|
|
|
|
|
|

楼主 |
发表于 22-11-2010 10:28 PM
|
显示全部楼层
如果有人有其他办法的话帮帮忙...  |
|
|
|
|
|
|
|
发表于 23-11-2010 09:29 PM
|
显示全部楼层
抱歉, 回帖的时候看到有点confuse~
早前有看过文章, 用terminal就可以了. |
|
|
|
|
|
|
|
发表于 23-11-2010 10:02 PM
|
显示全部楼层
如果需要 Remote 控制
可以使用 SSH 加以下 Command
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|