annotate resources/MacOS/BelaPdBuild.app/Contents/document.wflow @ 203:b5d59cf94c64

Better pd_build.sh script, also wrapped in an Automator Task for MacOS
author Giulio Moro <giuliomoro@yahoo.it>
date Fri, 05 Feb 2016 23:46:11 +0000
parents
children f6a3b9265e6f
rev   line source
giuliomoro@203 1 <?xml version="1.0" encoding="UTF-8"?>
giuliomoro@203 2 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
giuliomoro@203 3 <plist version="1.0">
giuliomoro@203 4 <dict>
giuliomoro@203 5 <key>AMApplicationBuild</key>
giuliomoro@203 6 <string>419</string>
giuliomoro@203 7 <key>AMApplicationVersion</key>
giuliomoro@203 8 <string>2.6</string>
giuliomoro@203 9 <key>AMDocumentVersion</key>
giuliomoro@203 10 <string>2</string>
giuliomoro@203 11 <key>actions</key>
giuliomoro@203 12 <array>
giuliomoro@203 13 <dict>
giuliomoro@203 14 <key>action</key>
giuliomoro@203 15 <dict>
giuliomoro@203 16 <key>AMAccepts</key>
giuliomoro@203 17 <dict>
giuliomoro@203 18 <key>Container</key>
giuliomoro@203 19 <string>List</string>
giuliomoro@203 20 <key>Optional</key>
giuliomoro@203 21 <true/>
giuliomoro@203 22 <key>Types</key>
giuliomoro@203 23 <array>
giuliomoro@203 24 <string>com.apple.applescript.object</string>
giuliomoro@203 25 </array>
giuliomoro@203 26 </dict>
giuliomoro@203 27 <key>AMActionVersion</key>
giuliomoro@203 28 <string>1.0.2</string>
giuliomoro@203 29 <key>AMApplication</key>
giuliomoro@203 30 <array>
giuliomoro@203 31 <string>Automator</string>
giuliomoro@203 32 </array>
giuliomoro@203 33 <key>AMParameterProperties</key>
giuliomoro@203 34 <dict>
giuliomoro@203 35 <key>source</key>
giuliomoro@203 36 <dict/>
giuliomoro@203 37 </dict>
giuliomoro@203 38 <key>AMProvides</key>
giuliomoro@203 39 <dict>
giuliomoro@203 40 <key>Container</key>
giuliomoro@203 41 <string>List</string>
giuliomoro@203 42 <key>Types</key>
giuliomoro@203 43 <array>
giuliomoro@203 44 <string>com.apple.applescript.object</string>
giuliomoro@203 45 </array>
giuliomoro@203 46 </dict>
giuliomoro@203 47 <key>ActionBundlePath</key>
giuliomoro@203 48 <string>/System/Library/Automator/Run AppleScript.action</string>
giuliomoro@203 49 <key>ActionName</key>
giuliomoro@203 50 <string>Run AppleScript</string>
giuliomoro@203 51 <key>ActionParameters</key>
giuliomoro@203 52 <dict>
giuliomoro@203 53 <key>source</key>
giuliomoro@203 54 <string>on run {input, parameters}
giuliomoro@203 55 if input is equal to {} then
giuliomoro@203 56 display alert "Please drag a folder containing your PD patch, with all externals and auxiliary files onto this window to compile it with Heavy."
giuliomoro@203 57 else
giuliomoro@203 58 tell application "Terminal"
giuliomoro@203 59 activate
giuliomoro@203 60 do script "echo -n -e \"\\033]0;Building Heavy-Pd-Bela\\007\"; export BBB_ADDRESS=\"root@192.168.7.2\"; export BBB_SCRIPTS_PATH=\"$HOME/BeagleRT/scripts/\"; export SCRIPT_NAME=\"build_pd.sh\"; bash -c 'cd \"$BBB_SCRIPTS_PATH\"; ./\"$SCRIPT_NAME\" --watch --force --screen -i " &amp; quoted form of (POSIX path of input) &amp; "'; if [ $? -eq 130 ] ; then osascript -e 'tell application \"Terminal\" to close (every window whose name contains \"Building Heavy-Pd-Bela\")'; fi"
giuliomoro@203 61 end tell
giuliomoro@203 62 -- tell application "Terminal" to quit
giuliomoro@203 63 end if
giuliomoro@203 64 -- return input
giuliomoro@203 65 end run</string>
giuliomoro@203 66 </dict>
giuliomoro@203 67 <key>BundleIdentifier</key>
giuliomoro@203 68 <string>com.apple.Automator.RunScript</string>
giuliomoro@203 69 <key>CFBundleVersion</key>
giuliomoro@203 70 <string>1.0.2</string>
giuliomoro@203 71 <key>CanShowSelectedItemsWhenRun</key>
giuliomoro@203 72 <false/>
giuliomoro@203 73 <key>CanShowWhenRun</key>
giuliomoro@203 74 <true/>
giuliomoro@203 75 <key>Category</key>
giuliomoro@203 76 <array>
giuliomoro@203 77 <string>AMCategoryUtilities</string>
giuliomoro@203 78 </array>
giuliomoro@203 79 <key>Class Name</key>
giuliomoro@203 80 <string>RunScriptAction</string>
giuliomoro@203 81 <key>InputUUID</key>
giuliomoro@203 82 <string>EF92A55A-EBA7-413C-BD41-79E5A684A273</string>
giuliomoro@203 83 <key>Keywords</key>
giuliomoro@203 84 <array>
giuliomoro@203 85 <string>Run</string>
giuliomoro@203 86 </array>
giuliomoro@203 87 <key>OutputUUID</key>
giuliomoro@203 88 <string>6D9DB3CD-C949-4256-847F-664D5EBC5EB9</string>
giuliomoro@203 89 <key>UUID</key>
giuliomoro@203 90 <string>3E1C4D48-C87F-4325-A94B-AAC1E334B30D</string>
giuliomoro@203 91 <key>UnlocalizedApplications</key>
giuliomoro@203 92 <array>
giuliomoro@203 93 <string>Automator</string>
giuliomoro@203 94 </array>
giuliomoro@203 95 <key>arguments</key>
giuliomoro@203 96 <dict>
giuliomoro@203 97 <key>0</key>
giuliomoro@203 98 <dict>
giuliomoro@203 99 <key>default value</key>
giuliomoro@203 100 <string>on run {input, parameters}
giuliomoro@203 101
giuliomoro@203 102 (* Your script goes here *)
giuliomoro@203 103
giuliomoro@203 104 return input
giuliomoro@203 105 end run</string>
giuliomoro@203 106 <key>name</key>
giuliomoro@203 107 <string>source</string>
giuliomoro@203 108 <key>required</key>
giuliomoro@203 109 <string>0</string>
giuliomoro@203 110 <key>type</key>
giuliomoro@203 111 <string>0</string>
giuliomoro@203 112 <key>uuid</key>
giuliomoro@203 113 <string>0</string>
giuliomoro@203 114 </dict>
giuliomoro@203 115 </dict>
giuliomoro@203 116 <key>conversionLabel</key>
giuliomoro@203 117 <integer>0</integer>
giuliomoro@203 118 <key>isViewVisible</key>
giuliomoro@203 119 <true/>
giuliomoro@203 120 <key>location</key>
giuliomoro@203 121 <string>411.500000:316.000000</string>
giuliomoro@203 122 <key>nibPath</key>
giuliomoro@203 123 <string>/System/Library/Automator/Run AppleScript.action/Contents/Resources/Base.lproj/main.nib</string>
giuliomoro@203 124 </dict>
giuliomoro@203 125 <key>isViewVisible</key>
giuliomoro@203 126 <true/>
giuliomoro@203 127 </dict>
giuliomoro@203 128 </array>
giuliomoro@203 129 <key>connectors</key>
giuliomoro@203 130 <dict/>
giuliomoro@203 131 <key>workflowMetaData</key>
giuliomoro@203 132 <dict>
giuliomoro@203 133 <key>workflowTypeIdentifier</key>
giuliomoro@203 134 <string>com.apple.Automator.application</string>
giuliomoro@203 135 </dict>
giuliomoro@203 136 </dict>
giuliomoro@203 137 </plist>