Article:
  JavaScript and Mac OS
Subject:   "login as Administrator"
Date:   2001-05-12 00:07:14
From:   rdomidion
Hi. I downloaded the JavaScript.component file and tried to drag it into the "Components" folder but get an error saying the item cannot be moved because "Components" cannot be modified.


The "Installation" file says "login to the MacOS X desktop as administrator". How do I do this?
How do I do this

Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • "login as Administrator"
    2001-05-14 21:49:07  rdomidion [View]

    I got it installed. There is a technote about this at http://.

    The "Hello" and factorial Java scripts work in OS X, but the hard drive one doesn't. The Hard Drive Apple script doesn't work in OS X, it says "finder: Can't continue" on "select startu[ disk".
    • "login as Administrator"
      2001-05-15 11:37:05  Corvus [View]

      The installation problem is a misfeature in OS X, the default logon canot copy files to the System/Library folder. You have to create an administrator or root account. An easier workaround is to boot from the OS 9.1 CD that came with OS X and copy the file from OS 9.

      A tech note for this is at http://www.info.apple.com/kbnum/n106237. I assume this is the URL you meant?

      I didn't try the scripts under OS X. When you say "the Hard Drive Apple script doesn't work in OS X" do you mean the JavaScript version doesn't work and the AppleScript version does? Both don't work? Try each of the statements after the "tell" (in AppleScript) or "var finder = ..." (JavaScript) one at a time, without any others.

      Did you spell "startup disk" right? It has to be "finder.desktop.startup_disk" in JavaScript, you can't use spaces or capital letters. What does this statement:

      tell application "Finder" to select startup disk

      do in AppleScript (not JavaScript) in OS X?
      • "login as Administrator"
        2001-05-16 09:03:35  rdomidion [View]

        Sorry, the URL I meant was at MacFixIt.com; IE 5.1 won't let me paste a URL. Grrr.

        The URL you gave says I have to log in to "AppleCare".

        All teh Java scripts work in OSX except "finder.select(finder.desktop.startup_disk)". It says "The Apple Event was not handled by the client".

        "tell application "Finder" to select startup disk" does not work in OSX in Apple script, either but it does work in Classic mode. It must be something wrong in OSX.

        Thanks for your help.