Title: Re: Microsoft Database Daemon?
On 12/12/01 1:27 PM, "Sherman Wilcox" <[EMAIL PROTECTED]> wrote:

> There is a new Applescript solution for this login problem. I haven't
> actually tested it yet, but it certainly seems like it should work.
>
> Essentially it's a script that you put in your Login items. The script then
> launches whatever login items you need, with a 5 second delay between
> launches (which apparently is a workaround for this Carbon problem). [I've
> tested its functionality, and it works; I just haven't actually installed it
> as a login item yet.]
>
> I can't remember where I found the script, sorry. But if people are
> interested I could repost it here (it's small). A good guess is that I found
> it on Mac OS X Hints.

I'm pretty sure it's OSXHints too.

<http://www.macosxhints.com/hhints.php>

Here's the script:

property pPathToLoginItemsFolder : "" -- The script will set this value.
set loginItemsList to {} -- The script will set this value.
set interLaunchDelay to 5 -- Seconds between launching applications. Feel free to fiddle with this one.
tell application "Finder"
  set pPathToLoginItemsFolder to ((container of (path to me) as alias) as text) & "Login Items:"
  set loginItemsList to every item of folder pPathToLoginItemsFolder whose kind is "Alias"
  repeat with i in loginItemsList
    open i
    delay interLaunchDelay
    if (comment of i is "hide") then
      set visible of process ((displayed name of i) as text) to false
    end if
  end repeat
end tell
As explained above, just save the script into a folder, create a new Login Items folder in that same folder, and then place aliases to your startup apps in the Login Items folder. Add the script as the only app to be run at login, and you should have a viable multiple login items launch solution.

--
Diane

Reply via email to