Apple Script

Ein paar nützliche Scripte:

Script für iTunes

Vertauscht Titelname und Künstlername in der aktuellen Auswahl von Titeln:

tell application "iTunes"
	set l to selection
	
	repeat with t in l
		set a to artist of t
		set n to name of t
		
		set artist of t to n
		set name of t to a
	end repeat
end tell

Script für Disc Images

Dieses Script erzeugt als Programm gespeichert für jeden darauf gezogenen Ordner ein neues Disc Image mit maximaler Kompression:

on open draggeditems

    repeat with thisFile in draggeditems

        set f to thisFile

        set Skript to ""

        tell application "Finder"

            set t to folder f

            set ItemName to name of t as string

            set pfad to POSIX path of f

            set dpfad to pfad

            set the character_count to the number of characters of the dpfad

            set s to characters (the character_count) thru character_count of dpfad as string

            -- display dialog s

            if s = "/" then

                set dpfad to characters 1 thru (character_count - 1) of dpfad as string

            end if

            set dpfad to quoted form of (dpfad & ".dmg")

            -- display dialog dpfad

            set Skript to "/usr/bin/hdiutil create -imagekey zlib-level=9 -srcfolder " & (quoted form of pfad) & " -fs HFS+ -volname " & (quoted form of ItemName) & " " & (dpfad)

        end tell

        do shell script (Skript)

        display dialog result

    end repeat

end open

on run

end run




Links
MBS Realbasic Plugins - Christians Software aus Nickenich

In Erinnerung and den lächelnden Mac Plus, den man beim Start von Mac OS 1 bis X.1 sieht...