AcceptsFiles AcceptsText Authentication Author Sveinbjorn Thordarson BundledFiles Creator Platypus-5.4.1 DeclareService Overwrite DevelopmentVersion Example ScriptName WebViewDroplet.py Script #!/usr/bin/python import sys import os header = """<html> <head> <style type='text/css'> body { background-color: #eee; padding: 10px; } li { border: 1px solid black; background-color: #00e; padding: 5px; margin: 5px; list-style-type: none; width: 70%; color: white; } </style> <body> """ footer = "\n</body>\n" print header numfiles = len(sys.argv[1:]); if numfiles > 0: print "<h1>" + str(numfiles) + " files</h1>" print "<ul>" for arg in sys.argv[1:]: print "<li><strong>" + os.path.basename(arg) + "</strong> (" + str(os.path.getsize(arg)) + " bytes)</li>\n" print "</ul>" else: print "<h4>Go ahead and drop some files on the window</h4>" print footer DocIconPath Droppable IconPath Identifier org.sveinbjorn.WebViewDroplet InterpreterPath /usr/bin/python InterpreterArgs Name WebViewDroplet OptimizeApplication InterfaceType Web View PromptForFileOnLaunch RemainRunning ScriptArgs RunInBackground StatusItemDisplayType Text StatusItemIcon StatusItemTitle MyPlatypusApp StatusItemUseSystemFont Suffixes * TextBackground #ffffff TextFont Monaco TextForeground #000000 TextSize 13 UniformTypes Version 1.0