Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on open someDroppedAliases
- set theAlias to first item of someDroppedAliases
- tell application "Finder"
- set filename to name of theAlias
- set ParentFolder to container of theAlias
- set the item_count to the number of items in the ParentFolder
- set parentFolderAlias to ParentFolder as alias
- end tell
- set parentFolderPath to POSIX path of parentFolderAlias
- set ausgabe to do shell script "mkvinfo " & quoted form of POSIX path of someDroppedAliases
- if ausgabe contains "Content compression" then
- do shell script "mkvmerge -o " & quoted form of parentFolderPath & "clean_" & quoted form of filename & " --compression 1:none " & quoted form of POSIX path of someDroppedAliases
- tell application "GrowlHelperApp"
- set the allNotificationsList to ¬
- {"Reparieren"}
- set the defaultNotificationsList to ¬
- {"Reparieren"}
- register as application ¬
- "Growl AppleScript Sample" all notifications allNotificationsList ¬
- default notifications defaultNotificationsList ¬
- icon of application "Mkvtoolnix"
- -- Send a Notification...
- notify with name ¬
- "Reparieren" title ¬
- filename description ¬
- "Kompression erfolgreich entfernt." application name "Growl AppleScript Sample"
- end tell
- else
- tell application "GrowlHelperApp"
- set the allNotificationsList to ¬
- {"Nichts zu reparieren"}
- set the defaultNotificationsList to ¬
- {"Nichts zu reparieren"}
- register as application ¬
- "Growl AppleScript Sample" all notifications allNotificationsList ¬
- default notifications defaultNotificationsList ¬
- icon of application "Mkvtoolnix"
- -- Send a Notification...
- notify with name ¬
- "Nichts zu reparieren" title ¬
- filename description ¬
- "Keine Kompression vorhanden" application name "Growl AppleScript Sample"
- end tell
- end if
- end open
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement