Re: Scripting Startup Disk?
Re: Scripting Startup Disk?
- Subject: Re: Scripting Startup Disk?
- From: Helmut Fuchs <email@hidden>
- Date: Thu, 27 Sep 2001 20:24:22 +0200
At 12:54 Uhr -0400 27.09.2001, Todd J McDaniel wrote:
Thanks Jeff. Have you tried that script on 9.2.1? It gives me the following
error on the "startup system folder":
"A application constant or consideration can't go after this application
constant or consideration"
Is this now also happening on US systems? Or are you using an
international system?
This item has been discussed ad nauseaum end of July/beginning of
August. It's a pity that you can't access those items any more, as
there's still no search mechanism for the list.
The solution boils down to using raw class codes instead of using the
terms defined in the dictionary of Startup Disk.
tell application "Startup Disk"
activate
set sysVolumeAlias to its <<class disk>>
set sysFolderAlias to its <<class sysf>>
end tell
The activate may or may not be necessary - but it seems to work more
consistently if you do include it.
Oh, and before I forget: the "<<" and ">>" are to be entered as
single chevron characters - still don't know where they are on a US
keyboard though. And I also don't know why this listserver, though
serving a MacOS list, is still not able to convey characters above
ASCII 7-Bit...
HTH,
Helmut