comparison resources/MacOSX/BelaPdBuild.app/Contents/document.wflow @ 207:b2e69b701588

Automator script is location independent (and moved to a new location)
author Giulio Moro <giuliomoro@yahoo.it>
date Sun, 07 Feb 2016 17:20:20 +0000
parents resources/MacOS/BelaPdBuild.app/Contents/document.wflow@f6a3b9265e6f
children
comparison
equal deleted inserted replaced
206:0ec86af13cd1 207:b2e69b701588
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 the program icon 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=\"" &amp; POSIX path of ((path to me as text) &amp; "::") &amp; "../../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"
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>isViewVisible</key>
117 <true/>
118 <key>location</key>
119 <string>411.500000:531.000000</string>
120 <key>nibPath</key>
121 <string>/System/Library/Automator/Run AppleScript.action/Contents/Resources/Base.lproj/main.nib</string>
122 </dict>
123 <key>isViewVisible</key>
124 <true/>
125 </dict>
126 </array>
127 <key>connectors</key>
128 <dict/>
129 <key>workflowMetaData</key>
130 <dict>
131 <key>workflowTypeIdentifier</key>
132 <string>com.apple.Automator.application</string>
133 </dict>
134 </dict>
135 </plist>