Terror Skript aus meinen Anfängen

8/03/2011
Ich habe das mal zum Spaß als App gespeichert, mit dem Photo Booth-Icon versehen und im Dock abgelegt... Ein Klick und schon war alles weg... Bitte also vor dem Ausführen des Skripts ungesicherte Dateien speichern, da sämtliche aktiven Programme im Dock (inkl. Finder) gekillt werden (-9 )!

-- 07.03.2006 hubionmac.com

tell application "System Events"

set myids to {}

set allApps to every application process whose background only is false

repeat with j in allApps

--if name of j is not "Finder" then

set myids to myids & unix id of j

--- end if

end repeat

end tell

set AppleScript's text item delimiters to " "

set myids to myids as text

set AppleScript's text item delimiters to ""

do shell script "kill -9 " & myids

No Comments

AppleScript Finder Terror

22/03/2010
Macht besonders viel Spaß, wenn der Schreibtisch besonders voll ist:
Code zum markieren einmal anklicken Code im Skript-Editor öffnen

tell application "System Events"

set visible of every process to false

end tell

tell application "Finder"

activate

close every window

repeat with i from 1 to 1

set arrangement of icon view options of window of desktop to arranged by kind

delay 0.25

set arrangement of icon view options of window of desktop to arranged by name

delay 0.25

set arrangement of icon view options of window of desktop to arranged by size

delay 0.25

set arrangement of icon view options of window of desktop to arranged by creation date

delay 0.25

set arrangement of icon view options of window of desktop to arranged by modification date

delay 0.25

set arrangement of icon view options of window of desktop to arranged by kind

delay 0.25

end repeat

end tell

No Comments