• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: select a startup disk
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: select a startup disk


  • Subject: Re: select a startup disk
  • From: Ken Grunke <email@hidden>
  • Date: Wed, 14 Feb 2001 21:16:52 -0600

Thanks to Christopher Stone, Samuel P. Hargis and Mr Tea for the replies
with the link to the Startup Disk osax, but I can't get it to work. I
put it in the Scripting Additions folder, then made the following
applescript and saved it as an application, in a folder along with a
copy of the "Startup Disk" control panel from my secondary drive,
running OS 8.1 (see why below)

set startup disk to file "HD_two" using file "Startup Disk" of +class
cfol; "Set Startup Disk 1.0" of +class sdsk;

I'm missing something, of course (newbie)
According to the Read Me for the osax , it doesn't work with the version
of Startup Disk included with OS 8.6, but a copy of any other version
will work. I quote the Read Me:

>snip... 7.7.7 (which is part of the OS 9.0.4 update), except version
7.7.4 (which is part of the OS 8.6 update). Thus, if your active
>Control Panels Folder contains version 7.7.4, you must grab another
version of the control panel and employ the using >parameter. For
example, if you add a copy of the Startup Disk control panel to the
folder containing the application that is >running your script, you can
do this:
>
> set startup disk to [whatever] using file "Startup Disk"

So I just stuck the control panel copy and my script in the folder (at
root level of HD_one) that the osax had been in (because it was there,
no other reason)


> to the folder containing the application that is
> >running your script, you can do this:
>

Now, I don't have an application running my script, I would just like a
stand-alone applescript, with a command to change the startup disk AND
with a restart command, all with one click (as a button). But I get an
error message 'Can't get "Startup Disk" of +class cfol; "Set Startup
Disk 1.0" of +class sdsk;' I used the Paste as Reference menu item for
this, to make sure it was right. What am I missing?
I am having fun with the basics of AS, and really appreciate this
list!

Ken Grunke


  • Prev by Date: Re: A little off topic
  • Next by Date: Re: Re: Repeat With question (newbie level)
  • Previous by thread: Re: A little off topic
  • Next by thread: 'explode' quark document into pages
  • Index(es):
    • Date
    • Thread