cry/platypus/Platypus.app/Contents/Resources/Examples/DataURLifier.platypus
John Doty e8c91189c0 Vendor platypus.app
Let's see if it can be made to work.
2024-09-14 18:18:14 -07:00

95 lines
2.1 KiB
XML

<?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>DataURLifier.sh</string>
<key>Script</key>
<string>#!/bin/sh
if [ ! -e &quot;$1&quot; ]
then
echo &quot;Drop a file to see its Data URL&quot;
exit
fi
# Data urls have the form data:MIME_TYPE;base64,DATA
FILE_PATH=&quot;$1&quot;
BASE64_DATA=$( base64 &quot;$FILE_PATH&quot; )
MIME_TYPE=$( file -b --mime-type &quot;$FILE_PATH&quot; )
echo &quot;data:$MIME_TYPE;base64,$BASE64_DATA&quot;
</string>
<key>DocIconPath</key>
<string></string>
<key>Droppable</key>
<true/>
<key>IconPath</key>
<string></string>
<key>Identifier</key>
<string>org.sveinbjorn.DataURLifier</string>
<key>InterpreterPath</key>
<string>/bin/sh</string>
<key>InterpreterArgs</key>
<array/>
<key>InterfaceType</key>
<string>Text Window</string>
<key>Name</key>
<string>DataURLifier</string>
<key>OptimizeApplication</key>
<true/>
<key>PromptForFileOnLaunch</key>
<false/>
<key>RemainRunning</key>
<true/>
<key>ScriptArgs</key>
<array/>
<key>RunInBackground</key>
<false/>
<key>StatusItemDisplayType</key>
<string>Text</string>
<key>StatusItemIcon</key>
<data></data>
<key>StatusItemIconIsTemplate</key>
<false/>
<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>