佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1603|回复: 7

关机 Count Down Timer 疑问 [60秒的dialog box]

[复制链接]
发表于 22-11-2010 04:20 PM | 显示全部楼层 |阅读模式
本帖最后由 肯多纳 于 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. 有办法吗?
回复

使用道具 举报


ADVERTISEMENT

发表于 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 | 显示全部楼层
如果有人有其他办法的话帮帮忙...
回复

使用道具 举报

Follow Us
发表于 23-11-2010 09:29 PM | 显示全部楼层
抱歉, 回帖的时候看到有点confuse~
早前有看过文章, 用terminal就可以了.
回复

使用道具 举报

发表于 23-11-2010 10:02 PM | 显示全部楼层
如果需要 Remote 控制

可以使用 SSH 加以下 Command
  1. sudo shutdown -h now
复制代码
回复

使用道具 举报


ADVERTISEMENT

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 3-10-2025 05:47 AM , Processed in 0.149902 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表