Vendor platypus.app
Let's see if it can be made to work.
This commit is contained in:
parent
51049b4d30
commit
e8c91189c0
136 changed files with 7058 additions and 0 deletions
|
|
@ -0,0 +1,114 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>AcceptsFiles</key>
|
||||
<true/>
|
||||
<key>AcceptsText</key>
|
||||
<false/>
|
||||
<key>Authentication</key>
|
||||
<false/>
|
||||
<key>Author</key>
|
||||
<string>Sveinbjorn Thordarson</string>
|
||||
<key>BundledFiles</key>
|
||||
<array/>
|
||||
<key>Creator</key>
|
||||
<string>Platypus-5.4.1</string>
|
||||
<key>DeclareService</key>
|
||||
<false/>
|
||||
<key>Overwrite</key>
|
||||
<false/>
|
||||
<key>DevelopmentVersion</key>
|
||||
<false/>
|
||||
<key>Example</key>
|
||||
<true/>
|
||||
<key>ScriptName</key>
|
||||
<string>WebViewDroplet.py</string>
|
||||
<key>Script</key>
|
||||
<string>#!/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</string>
|
||||
<key>DocIconPath</key>
|
||||
<string></string>
|
||||
<key>Droppable</key>
|
||||
<true/>
|
||||
<key>IconPath</key>
|
||||
<string></string>
|
||||
<key>Identifier</key>
|
||||
<string>org.sveinbjorn.WebViewDroplet</string>
|
||||
<key>InterpreterPath</key>
|
||||
<string>/usr/bin/python</string>
|
||||
<key>InterpreterArgs</key>
|
||||
<array/>
|
||||
<key>Name</key>
|
||||
<string>WebViewDroplet</string>
|
||||
<key>OptimizeApplication</key>
|
||||
<true/>
|
||||
<key>InterfaceType</key>
|
||||
<string>Web View</string>
|
||||
<key>PromptForFileOnLaunch</key>
|
||||
<true/>
|
||||
<key>RemainRunning</key>
|
||||
<true/>
|
||||
<key>ScriptArgs</key>
|
||||
<array/>
|
||||
<key>RunInBackground</key>
|
||||
<false/>
|
||||
<key>StatusItemDisplayType</key>
|
||||
<string>Text</string>
|
||||
<key>StatusItemIcon</key>
|
||||
<data></data>
|
||||
<key>StatusItemTitle</key>
|
||||
<string>MyPlatypusApp</string>
|
||||
<key>StatusItemUseSystemFont</key>
|
||||
<true/>
|
||||
<key>Suffixes</key>
|
||||
<array>
|
||||
<string>*</string>
|
||||
</array>
|
||||
<key>TextBackground</key>
|
||||
<string>#ffffff</string>
|
||||
<key>TextFont</key>
|
||||
<string>Monaco</string>
|
||||
<key>TextForeground</key>
|
||||
<string>#000000</string>
|
||||
<key>TextSize</key>
|
||||
<real>13</real>
|
||||
<key>UniformTypes</key>
|
||||
<array/>
|
||||
<key>Version</key>
|
||||
<string>1.0</string>
|
||||
</dict>
|
||||
</plist>
|
||||
Loading…
Add table
Add a link
Reference in a new issue