Mercurial > hg > beaglert
comparison 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 |
comparison
equal
deleted
inserted
replaced
202:6fbf0af23a19 | 203:b5d59cf94c64 |
---|---|
1 <?xml version="1.0" encoding="UTF-8"?> | |
2 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
3 <plist version="1.0"> | |
4 <dict> | |
5 <key>AMApplicationBuild</key> | |
6 <string>419</string> | |
7 <key>AMApplicationVersion</key> | |
8 <string>2.6</string> | |
9 <key>AMDocumentVersion</key> | |
10 <string>2</string> | |
11 <key>actions</key> | |
12 <array> | |
13 <dict> | |
14 <key>action</key> | |
15 <dict> | |
16 <key>AMAccepts</key> | |
17 <dict> | |
18 <key>Container</key> | |
19 <string>List</string> | |
20 <key>Optional</key> | |
21 <true/> | |
22 <key>Types</key> | |
23 <array> | |
24 <string>com.apple.applescript.object</string> | |
25 </array> | |
26 </dict> | |
27 <key>AMActionVersion</key> | |
28 <string>1.0.2</string> | |
29 <key>AMApplication</key> | |
30 <array> | |
31 <string>Automator</string> | |
32 </array> | |
33 <key>AMParameterProperties</key> | |
34 <dict> | |
35 <key>source</key> | |
36 <dict/> | |
37 </dict> | |
38 <key>AMProvides</key> | |
39 <dict> | |
40 <key>Container</key> | |
41 <string>List</string> | |
42 <key>Types</key> | |
43 <array> | |
44 <string>com.apple.applescript.object</string> | |
45 </array> | |
46 </dict> | |
47 <key>ActionBundlePath</key> | |
48 <string>/System/Library/Automator/Run AppleScript.action</string> | |
49 <key>ActionName</key> | |
50 <string>Run AppleScript</string> | |
51 <key>ActionParameters</key> | |
52 <dict> | |
53 <key>source</key> | |
54 <string>on run {input, parameters} | |
55 if input is equal to {} then | |
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." | |
57 else | |
58 tell application "Terminal" | |
59 activate | |
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 " & quoted form of (POSIX path of input) & "'; if [ $? -eq 130 ] ; then osascript -e 'tell application \"Terminal\" to close (every window whose name contains \"Building Heavy-Pd-Bela\")'; fi" | |
61 end tell | |
62 -- tell application "Terminal" to quit | |
63 end if | |
64 -- return input | |
65 end run</string> | |
66 </dict> | |
67 <key>BundleIdentifier</key> | |
68 <string>com.apple.Automator.RunScript</string> | |
69 <key>CFBundleVersion</key> | |
70 <string>1.0.2</string> | |
71 <key>CanShowSelectedItemsWhenRun</key> | |
72 <false/> | |
73 <key>CanShowWhenRun</key> | |
74 <true/> | |
75 <key>Category</key> | |
76 <array> | |
77 <string>AMCategoryUtilities</string> | |
78 </array> | |
79 <key>Class Name</key> | |
80 <string>RunScriptAction</string> | |
81 <key>InputUUID</key> | |
82 <string>EF92A55A-EBA7-413C-BD41-79E5A684A273</string> | |
83 <key>Keywords</key> | |
84 <array> | |
85 <string>Run</string> | |
86 </array> | |
87 <key>OutputUUID</key> | |
88 <string>6D9DB3CD-C949-4256-847F-664D5EBC5EB9</string> | |
89 <key>UUID</key> | |
90 <string>3E1C4D48-C87F-4325-A94B-AAC1E334B30D</string> | |
91 <key>UnlocalizedApplications</key> | |
92 <array> | |
93 <string>Automator</string> | |
94 </array> | |
95 <key>arguments</key> | |
96 <dict> | |
97 <key>0</key> | |
98 <dict> | |
99 <key>default value</key> | |
100 <string>on run {input, parameters} | |
101 | |
102 (* Your script goes here *) | |
103 | |
104 return input | |
105 end run</string> | |
106 <key>name</key> | |
107 <string>source</string> | |
108 <key>required</key> | |
109 <string>0</string> | |
110 <key>type</key> | |
111 <string>0</string> | |
112 <key>uuid</key> | |
113 <string>0</string> | |
114 </dict> | |
115 </dict> | |
116 <key>conversionLabel</key> | |
117 <integer>0</integer> | |
118 <key>isViewVisible</key> | |
119 <true/> | |
120 <key>location</key> | |
121 <string>411.500000:316.000000</string> | |
122 <key>nibPath</key> | |
123 <string>/System/Library/Automator/Run AppleScript.action/Contents/Resources/Base.lproj/main.nib</string> | |
124 </dict> | |
125 <key>isViewVisible</key> | |
126 <true/> | |
127 </dict> | |
128 </array> | |
129 <key>connectors</key> | |
130 <dict/> | |
131 <key>workflowMetaData</key> | |
132 <dict> | |
133 <key>workflowTypeIdentifier</key> | |
134 <string>com.apple.Automator.application</string> | |
135 </dict> | |
136 </dict> | |
137 </plist> |