Mercurial > hg > beaglert
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/resources/MacOS/BelaPdBuild.app/Contents/document.wflow Fri Feb 05 23:46:11 2016 +0000 @@ -0,0 +1,126 @@ +<?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>AMApplicationBuild</key> + <string>419</string> + <key>AMApplicationVersion</key> + <string>2.6</string> + <key>AMDocumentVersion</key> + <string>2</string> + <key>actions</key> + <array> + <dict> + <key>action</key> + <dict> + <key>AMAccepts</key> + <dict> + <key>Container</key> + <string>List</string> + <key>Optional</key> + <true/> + <key>Types</key> + <array> + <string>com.apple.applescript.object</string> + </array> + </dict> + <key>AMActionVersion</key> + <string>1.0.2</string> + <key>AMApplication</key> + <array> + <string>Automator</string> + </array> + <key>AMParameterProperties</key> + <dict> + <key>source</key> + <dict/> + </dict> + <key>AMProvides</key> + <dict> + <key>Container</key> + <string>List</string> + <key>Types</key> + <array> + <string>com.apple.applescript.object</string> + </array> + </dict> + <key>ActionBundlePath</key> + <string>/System/Library/Automator/Run AppleScript.action</string> + <key>ActionName</key> + <string>Run AppleScript</string> + <key>ActionParameters</key> + <dict> + <key>source</key> + <string>on run {input, parameters} if input is equal to {} then display alert "Please drag a folder containing your PD patch, with all externals and auxiliary files onto this window to compile it with Heavy." else tell application "Terminal" activate 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" end tell -- tell application "Terminal" to quit end if -- return input end run</string> + </dict> + <key>BundleIdentifier</key> + <string>com.apple.Automator.RunScript</string> + <key>CFBundleVersion</key> + <string>1.0.2</string> + <key>CanShowSelectedItemsWhenRun</key> + <false/> + <key>CanShowWhenRun</key> + <true/> + <key>Category</key> + <array> + <string>AMCategoryUtilities</string> + </array> + <key>Class Name</key> + <string>RunScriptAction</string> + <key>InputUUID</key> + <string>EF92A55A-EBA7-413C-BD41-79E5A684A273</string> + <key>Keywords</key> + <array> + <string>Run</string> + </array> + <key>OutputUUID</key> + <string>6D9DB3CD-C949-4256-847F-664D5EBC5EB9</string> + <key>UUID</key> + <string>3E1C4D48-C87F-4325-A94B-AAC1E334B30D</string> + <key>UnlocalizedApplications</key> + <array> + <string>Automator</string> + </array> + <key>arguments</key> + <dict> + <key>0</key> + <dict> + <key>default value</key> + <string>on run {input, parameters} + + (* Your script goes here *) + + return input +end run</string> + <key>name</key> + <string>source</string> + <key>required</key> + <string>0</string> + <key>type</key> + <string>0</string> + <key>uuid</key> + <string>0</string> + </dict> + </dict> + <key>conversionLabel</key> + <integer>0</integer> + <key>isViewVisible</key> + <true/> + <key>location</key> + <string>411.500000:316.000000</string> + <key>nibPath</key> + <string>/System/Library/Automator/Run AppleScript.action/Contents/Resources/Base.lproj/main.nib</string> + </dict> + <key>isViewVisible</key> + <true/> + </dict> + </array> + <key>connectors</key> + <dict/> + <key>workflowMetaData</key> + <dict> + <key>workflowTypeIdentifier</key> + <string>com.apple.Automator.application</string> + </dict> +</dict> +</plist>