geplaatst door: Lin
Misschien bestaat het al, maar ik kan 't niet vinden; een script om alle actieve programma's af te sluiten. Weet iemand dit ergens te vinden of is er een genius die dit voor mij in elkaar wil zetten?

Graag!

(ja ik ben lui....)  :music:

freelance dtp & vormgeving
2.33 GHz Intel Core 2 Duo MacBook Pro
G5 2.5 Gb
Gezocht: 'Close all applications' skurriptje...
14 juli 2004 - 16:58    reactie #1
geplaatst door: Akira
in de terminal:
sudo halt
dan stopt ALLES en dan ook METEEN :devil:

wel alles eerst saven  :tounge:

(Bewerkt door Akira om 16:59, 14-07-2004)

MacBook Pro 15" 2,33Ghz - PowerBook 15" 1,33GHz +Superdrive - Powermac G4 AGP 350MHz - iPod 5g 60 GB
Gezocht: 'Close all applications' skurriptje...
15 juli 2004 - 10:27    reactie #2
geplaatst door: Buibkier
of de stekker uit het stopcontact trekken...  :withstupid:
"Life is what happens to you while you're busy making other plans" - John Lennon  (iMagine)
Gezocht: 'Close all applications' skurriptje...
15 juli 2004 - 10:42    reactie #3
geplaatst door: WiMac
Vind ik eigenlijk ook wel een leuk scriptje.
Ik kom niet verder dan de volgende script, werkt overigens wel,
waarbij je al je programma's eerst even handmatig moet invoeren en
dan bewaren als programma:

tell application "Finder"
   activate
   quit application "TextEdit"
   quit application "InDesign 2.0.2"
   quit application "Safari"
end tell

Gezocht: 'Close all applications' skurriptje...
30 juli 2004 - 07:01    reactie #4
geplaatst door: Macceraar
property dontQuitThese : {"loginwindow", "Dock", "Finder", "SystemUIServer", "iCalAlarmScheduler", "SpeechSynthesisServer", "System Events"}

tell application "System Events"
repeat with theApp in application processes
if (name of theApp) is not in dontQuitThese then tell me to quit application (name of theApp) saving yes
end repeat
end tell

Als je wilt kun je de yes achter saving vervangen door no of ask, afhankelijk van of je wilt dat het wordt opgeslagen. Natuurlijk kun je ook progjes aan dontQuitThese toevoegen, zodat die niet stoppen. Het is belangrijk dat je daarvoor de 'echte', ofwel Engelse naam gebruikt. Dit is een scriptje dat die naam van elk draaiend progje geeft:

set appList to {}

tell application "System Events"
repeat with theApp in application processes
set appList to appList & name of theApp
end repeat
end tell

return appList

(Bewerkt door Macceraar om 8:25, 30-07-2004)

Gezocht: 'Close all applications' skurriptje...
30 juli 2004 - 13:32    reactie #5
geplaatst door: Toivo
Ik kwam net Quit Anything tegen, een applicatie die ook daemons stop kan zetten. Natuurlijk niet zo leuk als jouw huisvlijt, Macceraar, maar toch een tip die ik de MacFreakers niet wilde onthouden.

Ondertussen zoek ik een daemon cq. een "gezichtsloos achtergrondprogramma" (faceless background app) dat een applicatie afsluit zodra het laatste venster daarvan wordt gesloten, mede naar aanleiding van dit draadje. Ik meen dat er zo iets bestaat of bestond voor Switchers omdat MS Windows zich zo gedraagt, maar was dat nou voor Mac OS9 of OSX, en hoe heet het en waar vind ik het?

Toivo.

Time is nature's way of keeping everything from happening at once.