Posts Tagged “login-items”

Es gibt ja diverse Wege wie man mit dem Thema:

Automatisch Netzwerk-Freigaben mounten unter Mac OS X

umgehen kann.

Der in meinen Augen einfachste Weg ist sicherlich sich einmalig sein Laufwerk im Finder mittels “Go -> Connect to Server” zu mounten um dann das Share-Icon einfach in seine Login-Items (System Preferences -> Accounts -> Login Items) zu ziehen.

Nunja, dies scheint fpà¼r manche Leute nicht zu funktionierenm warum kann ich eigentlich auch nicht nachvollziehen, daher hier mal ein eleganter alternativer Weg meines Arbeitskollegen.

Idee:

Man erstellt sich in seinem Home-Verzeichnis ein Ordner foo in dem Aliase der einmalig gemounteten Shares abgelegt werden. Anschliessend erstelle man ein AppleScript welches bei jedem Login automatisch ausgefà¼hrt wird und dessen einzige funktion es ist, unseren Ordner foo abzuarbeiten. Konkret alle Share-Aliase zu mounten. Wichtiog ist hierbei das die Login-Daten (User & Password) abgespeichert sind.

AppleScript-Code:

tell application "Finder"
activate
open every file of folder "foo" of home
--close every window
repeat with i in (every window whose visible is true) as list
set windowPath to (target of i)
try
set windowDisk to disk of windowPath
if not (local volume of windowDisk) then
close i
end if
end try
end repeat
end tell

Das ganze als nach einmaligem Compile als .app speichern und ab damit in die Login Items. Nun einmal aus Testgrà¼nden ausloggen und wieder einloggern und die NShares sollten alle automatisch erscheinen.

Hoffe das hilft dem einen oder anderen.

Comments No Comments »

As i am used to several MacPorts based apps, X11. is one of my daily login items.

I was always wondering if there is a “hack” to get X11 closed while shutdown without having that “are-you-sure” dialog.

Yes there is:

  1. Open X11.app
  2. Open Terminal.app
  3. In Terminal enter:
    1. To disable the dialog:
      1. defaults write com.apple.x11 no_quit_alert true
    2. To enable (default):
      1. defaults write com.apple.x11 no_quit_alert false
  4. Close Terminal.app
  5. Close X11.app

The change will take effect the next time you open X11.

Additional informations about that topic can be found there.

Comments No Comments »

A real basic think you need to know as mac-user is howto define autostart items for your user account.

First Step is to open System Preferences:

Select Accounts -> Login Items

Then add your new Login Item using the Plus-Icon.

Finally you can select if you want to hide the application when you log in or not.

Thats all you need to know regarding Login Items. Really simple isnt it ?
Edit: this hint works for 10.4 and 10.5

Comments 2 Comments »

1