OSX內的Login autostart problem.

本區專門提供 Mac OS X 使用者交換使用心得

版主: ross_ttbryanchangdigdogchester

回覆文章
內容
發表人
頭像
Franky
留言五百如一日
文章: 684
註冊時間: 07/01/2001 1:01 am
來自: 香港特別行政區
聯繫:

OSX內的Login autostart problem.

#1 文章 Franky »

我把4個diskcopy做成的image files加進login的
login items內,希望可在bootup後自動的給我
mount在desktop上,但是,無論我加多少個
file進內,在bootup後,都只能把我加進去的
第一個image mount在desktop上,其它的都沒
有動作。
是我做錯了什麼﹖還是系統有問題﹖
頭像
bryanchang
討論區管理員
文章: 7057
註冊時間: 04/19/2001 1:01 am
來自: The '60s
聯繫:

OSX內的Login autostart problem.

#2 文章 bryanchang »

剛剛在測試過發現這的確是個系統的問題,我已經幫你向蘋果送了一個 Bug Report.
頭像
Franky
留言五百如一日
文章: 684
註冊時間: 07/01/2001 1:01 am
來自: 香港特別行政區
聯繫:

OSX內的Login autostart problem.

#3 文章 Franky »

多謝白老板,那我只有等吧。
頭像
the real unknown
冰果室打手
文章: 2610
註冊時間: 04/26/2001 1:01 am
來自: GMT-5
聯繫:

OSX內的Login autostart problem.

#4 文章 the real unknown »

嗯,這隻臭蟲不是幾個月前就報過了嗎?
頭像
bryanchang
討論區管理員
文章: 7057
註冊時間: 04/19/2001 1:01 am
來自: The '60s
聯繫:

OSX內的Login autostart problem.

#5 文章 bryanchang »

那也倒不必,你可以寫個 AppleScript 去 Mount 這幾個 Disk Image 檔。
頭像
Franky
留言五百如一日
文章: 684
註冊時間: 07/01/2001 1:01 am
來自: 香港特別行政區
聯繫:

OSX內的Login autostart problem.

#6 文章 Franky »

把diskcopy add在最上,再加上一些有用好,沒用也好的app,大約七至八個左右,再開始加入要的image,這樣就成功了。
怪! [img]images/smiles/icon_eek.gif[/img]
SilverChu
基本會員
文章: 30
註冊時間: 05/03/2001 1:01 am
來自: Macau

OSX內的Login autostart problem.

#7 文章 SilverChu »

For those newbies like me who know nothing about Apple Script, here is a not very sophisticate but workable method. Please try the following:

1. open Script Editor
2. type the following
***
tell application "Finder"
activate
set theVolumes to {"imagediskname1.img", "imagediskname2.img", "imagediskname3.dmg", "imagediskname4.img"}
set theDisks to {"DiskName1", "Diskname2", "Diskname3", "Diskname4"}
set i to 1
repeat while i < 5
if item i in theDisks exists then
set i to i + 1
else
open file (item i in theVolumes) of folder "Image Disk" of startup disk
delay 4
end if
end repeat
end tell
*****

Note: a. The "imagedisknamen.?mg" corresponded to the name of image disk that you want to mount
b. The "DiskNamen" should be exactly the same as it is appeared after it is mounted. (Case sensitive)
c. The number "5" in the repeat loop is the number of image disk that you want to mount plus 1.
d. The "Image Disk" in the else statement is the name of the folder where you stored your image disks.
e. The "delay 4" in the else statement is to make the system run slower (delay for 4 seconds) because the author of this program think that my machine is processing a bit fast that it forgets to open all folders for me in startup. You can change to any number or just delete it.

3. save this source files (File->Save) so that you can make change later

4. save this as execution file (File -> Save As Run Only -> Format -> Application, checked "Never Show Startup Screen")

5. add the execution file to (System Perference -> Login)
回覆文章