Re: startup disk scripting
Re: startup disk scripting
- Subject: Re: startup disk scripting
- From: "J. B. Stewart" <email@hidden>
- Date: Tue, 5 Jun 2001 15:45:47 -0400
At 5:11 PM +1000 6/5/01, Timothy Bates wrote:
>
hi there,
>
>
Any clues about why Startup Disk is unhappy about its own dictionary, or is
>
this a conflict with another osax in my system, do you think?
>
>
My goal is make an applescript to toggle the startup disk between OS9 and X
>
>
the script (and error) are:
>
tell application "Startup Disk"
>
startup disk alias
>
-->Expected end of line but found class name.
>
end tell
>
>
>
Dr Timothy Bates <mailto:email@hidden>
>
Macquarie Centre for Cognitive Science (MACCS)
>
Macquarie University
>
Ph 61 (2) 9850 8623
>
Fx 61 (2) 9850 6059
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
--
--Script
tell application "Startup Disk"
activate
set startup system folder alias to alias "Mac HD:System:Library:CoreServices:BootX"
quit
end tell
tell application "Finder" to restart
-- End
Just change "Mac HD" to the name of your hard drive.
John