• 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: Scripting Startup Disk?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Scripting Startup Disk?
      • From: John W Baxter <email@hidden>
  • Prev by Date: Re: How to tell if a file is busy?
  • Next by Date: Re: OutLook 5 HTML encoding new mail
  • Previous by thread: Re: Scripting Startup Disk?
  • Next by thread: Re: Scripting Startup Disk?
  • Index(es):
    • Date
    • Thread