Quote:
Originally Posted by Dan Lester
That an interesting idea. Can you be more specific about how that would work and, in particular how the script knows it is booting from a clone? I guess that script would put a message on the screen saying BOOTED FROM CLONE?
|
Here's a portion of my startup script. The script is saved as an app (I call it "Startup Actions"), and added to the Login Items list. The icon of the startup disk always appears at the top of the screen.
Code:
tell application "Finder"
set startupDisk to (startup disk as text)
if startupDisk is "DiskA:" then
open file ((path to applications folder as text) & "Dropbox.app")
set diskList to {"DiskA", "DiskB", "DiskA-X1", "DiskB-X1", "DiskA-X2", "DiskB-X2"}
end if
if startupDisk is "DiskA-X1:" then set diskList to {"DiskA-X1", "DiskB-X1", "DiskA", "DiskB", "DiskA-X2", "DiskB-X2"}
if startupDisk is "DiskA-X2:" then set diskList to {"DiskA-X2", "DiskB-X2", "DiskA", "DiskB", "DiskA-X1", "DiskB-X1"}
repeat with counter from 1 to length of diskList
if exists disk (item counter of diskList) then set desktop position of disk (item counter of diskList) of desktop to {2493, 54 + 94 * (counter - 1)}
end repeat
if startupDisk is not "DiskA:" then return
-- do other stuff here applicable only to main startup disk
end tell
This works for me, but Dave's suggestion would also work well.