Permalink
Browse files

Updating to only include the working scripts — it's still a tenuous b…

…alance, but this seems to work for me.
  • Loading branch information...
1 parent 9a18076 commit 9d2d29dd6bfd005ddc882ee2794b027636286353 @tonyarnold committed Apr 13, 2011
View
@@ -1,4 +1,4 @@
-Copyright (c) 2010, Tony Arnold
+Copyright (c) 2010—2011, Tony Arnold
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
View
@@ -1,9 +1,9 @@
# Uncrustify Automator Services for Xcode 4 developer preview #
-- Version: 0.1
-- Date: Saturday, 24 July 2010
+- Version: 0.3
+- Date: Wednesday, 13 April 2011
- Author: Tony Arnold, tony@thecocoabots.com
-- Requirements: Xcode 4 developer preview 2, Mac OS X 10.6.4
+- Requirements: Xcode 4.0 or higher, Mac OS X 10.6 or higher
## What's it do? ##
@@ -19,7 +19,7 @@ Copy or move the included workflow files into `~/Library/Services/`.
### A note of caution ###
-Uncrustify will write over your source files with it's changes without asking you if you choose to operate on an entire document. If you want to see what changes will be made without writing over your files, select all the code in your current Objective-C file and use the "*Uncrustify Selected Text*" service.
+Uncrustify will write over your source files with it's changes without asking you if you choose to operate on an entire document. If you want to see what changes will be made without writing over your files, select all the code in your current Objective-C file and use the "*Uncrustify Selected Source Code*" service.
### How to ###
@@ -30,4 +30,4 @@ Xcode will ask you if you want to revert to the file on disk - selecting "*Rever
## Copyright ##
-Copyright 2010 Tony Arnold. See LICENSE for details.
+Copyright 2010—2011 Tony Arnold. See LICENSE for details.
@@ -0,0 +1,31 @@
+<?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>NSServices</key>
+ <array>
+ <dict>
+ <key>NSMenuItem</key>
+ <dict>
+ <key>default</key>
+ <string>Uncrustify Selected Source Code</string>
+ </dict>
+ <key>NSMessage</key>
+ <string>runWorkflowAsService</string>
+ <key>NSRequiredContext</key>
+ <dict>
+ <key>NSApplicationIdentifier</key>
+ <string>com.apple.dt.Xcode</string>
+ </dict>
+ <key>NSReturnTypes</key>
+ <array>
+ <string>public.utf8-plain-text</string>
+ </array>
+ <key>NSSendTypes</key>
+ <array>
+ <string>public.utf8-plain-text</string>
+ </array>
+ </dict>
+ </array>
+</dict>
+</plist>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,271 @@
+<?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>247.1</string>
+ <key>AMApplicationVersion</key>
+ <string>2.1.1</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.cocoa.string</string>
+ </array>
+ </dict>
+ <key>AMActionVersion</key>
+ <string>2.0.1</string>
+ <key>AMParameterProperties</key>
+ <dict>
+ <key>COMMAND_STRING</key>
+ <dict/>
+ <key>CheckedForUserDefaultShell</key>
+ <dict/>
+ <key>inputMethod</key>
+ <dict/>
+ <key>shell</key>
+ <dict/>
+ <key>source</key>
+ <dict/>
+ </dict>
+ <key>AMProvides</key>
+ <dict>
+ <key>Container</key>
+ <string>List</string>
+ <key>Types</key>
+ <array>
+ <string>com.apple.cocoa.string</string>
+ </array>
+ </dict>
+ <key>ActionBundlePath</key>
+ <string>/System/Library/Automator/Run Shell Script.action</string>
+ <key>ActionName</key>
+ <string>Run Shell Script</string>
+ <key>ActionParameters</key>
+ <dict>
+ <key>COMMAND_STRING</key>
+ <string>/usr/local/bin/uncrustify -l OC -c ~/.uncrustify.cfg </string>
+ <key>CheckedForUserDefaultShell</key>
+ <true/>
+ <key>inputMethod</key>
+ <integer>0</integer>
+ <key>shell</key>
+ <string>/bin/bash</string>
+ <key>source</key>
+ <string></string>
+ </dict>
+ <key>Application</key>
+ <array>
+ <string>Automator</string>
+ </array>
+ <key>BundleIdentifier</key>
+ <string>com.apple.RunShellScript</string>
+ <key>CFBundleVersion</key>
+ <string>2.0.1</string>
+ <key>CanShowSelectedItemsWhenRun</key>
+ <false/>
+ <key>CanShowWhenRun</key>
+ <true/>
+ <key>Category</key>
+ <array>
+ <string>AMCategoryUtilities</string>
+ </array>
+ <key>Class Name</key>
+ <string>RunShellScriptAction</string>
+ <key>InputUUID</key>
+ <string>F876C371-87DD-4020-9F73-7FB086DD8C92</string>
+ <key>Keywords</key>
+ <array>
+ <string>Shell</string>
+ <string>Script</string>
+ <string>Command</string>
+ <string>Run</string>
+ <string>Unix</string>
+ </array>
+ <key>OutputUUID</key>
+ <string>909967B2-C8F6-40AC-B846-310E92C4FEB1</string>
+ <key>UUID</key>
+ <string>2BE5C2C7-3D32-40C8-9A2E-4E81D4D40B6E</string>
+ <key>UnlocalizedApplications</key>
+ <array>
+ <string>Automator</string>
+ </array>
+ <key>arguments</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>default value</key>
+ <integer>0</integer>
+ <key>name</key>
+ <string>inputMethod</string>
+ <key>required</key>
+ <string>0</string>
+ <key>type</key>
+ <string>0</string>
+ <key>uuid</key>
+ <string>0</string>
+ </dict>
+ <key>1</key>
+ <dict>
+ <key>default value</key>
+ <string></string>
+ <key>name</key>
+ <string>source</string>
+ <key>required</key>
+ <string>0</string>
+ <key>type</key>
+ <string>0</string>
+ <key>uuid</key>
+ <string>1</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>default value</key>
+ <false/>
+ <key>name</key>
+ <string>CheckedForUserDefaultShell</string>
+ <key>required</key>
+ <string>0</string>
+ <key>type</key>
+ <string>0</string>
+ <key>uuid</key>
+ <string>2</string>
+ </dict>
+ <key>3</key>
+ <dict>
+ <key>default value</key>
+ <string></string>
+ <key>name</key>
+ <string>COMMAND_STRING</string>
+ <key>required</key>
+ <string>0</string>
+ <key>type</key>
+ <string>0</string>
+ <key>uuid</key>
+ <string>3</string>
+ </dict>
+ <key>4</key>
+ <dict>
+ <key>default value</key>
+ <string>/bin/sh</string>
+ <key>name</key>
+ <string>shell</string>
+ <key>required</key>
+ <string>0</string>
+ <key>type</key>
+ <string>0</string>
+ <key>uuid</key>
+ <string>4</string>
+ </dict>
+ </dict>
+ <key>isViewVisible</key>
+ <true/>
+ <key>location</key>
+ <string>453.500000:741.000000</string>
+ <key>nibPath</key>
+ <string>/System/Library/Automator/Run Shell Script.action/Contents/Resources/English.lproj/main.nib</string>
+ </dict>
+ <key>isViewVisible</key>
+ <true/>
+ </dict>
+ </array>
+ <key>connectors</key>
+ <dict/>
+ <key>state</key>
+ <dict>
+ <key>AMLogTabViewSelectedIndex</key>
+ <integer>0</integer>
+ <key>libraryState</key>
+ <dict>
+ <key>actionsMajorSplitViewState</key>
+ <dict>
+ <key>expandedPosition</key>
+ <real>269</real>
+ <key>subviewState</key>
+ <array>
+ <string>0.000000, 0.000000, 381.000000, 673.000000, NO</string>
+ <string>0.000000, 674.000000, 381.000000, 268.000000, NO</string>
+ </array>
+ </dict>
+ <key>actionsMinorSplitViewState</key>
+ <dict>
+ <key>expandedPosition</key>
+ <real>0.0</real>
+ <key>subviewState</key>
+ <array>
+ <string>0.000000, 0.000000, 163.000000, 673.000000, NO</string>
+ <string>164.000000, 0.000000, 217.000000, 673.000000, NO</string>
+ </array>
+ </dict>
+ <key>variablesMajorSplitViewState</key>
+ <dict>
+ <key>expandedPosition</key>
+ <real>0.0</real>
+ <key>subviewState</key>
+ <array>
+ <string>0.000000, 0.000000, 381.000000, 555.000000, NO</string>
+ <string>0.000000, 556.000000, 381.000000, 299.000000, NO</string>
+ </array>
+ </dict>
+ <key>variablesMinorSplitViewState</key>
+ <dict>
+ <key>expandedPosition</key>
+ <real>0.0</real>
+ <key>subviewState</key>
+ <array>
+ <string>0.000000, 0.000000, 163.000000, 555.000000, NO</string>
+ <string>164.000000, 0.000000, 217.000000, 555.000000, NO</string>
+ </array>
+ </dict>
+ </dict>
+ <key>majorSplitViewState</key>
+ <dict>
+ <key>expandedPosition</key>
+ <real>0.0</real>
+ <key>subviewState</key>
+ <array>
+ <string>0.000000, 0.000000, 381.000000, 987.000000, NO</string>
+ <string>382.000000, 0.000000, 907.000000, 987.000000, NO</string>
+ </array>
+ </dict>
+ <key>minorSplitViewState</key>
+ <dict>
+ <key>expandedPosition</key>
+ <real>0.0</real>
+ <key>subviewState</key>
+ <array>
+ <string>0.000000, 0.000000, 907.000000, 796.000000, NO</string>
+ <string>0.000000, 806.000000, 907.000000, 162.000000, NO</string>
+ </array>
+ </dict>
+ <key>windowFrame</key>
+ <string>{{239, 339}, {1288, 1064}}</string>
+ <key>workflowViewScrollPosition</key>
+ <string>{{0, 0}, {907, 796}}</string>
+ </dict>
+ <key>workflowMetaData</key>
+ <dict>
+ <key>serviceApplicationBundleID</key>
+ <string>com.apple.dt.Xcode</string>
+ <key>serviceApplicationPath</key>
+ <string>/Developer/Applications/Xcode.app</string>
+ <key>serviceInputTypeIdentifier</key>
+ <string>com.apple.Automator.text</string>
+ <key>serviceOutputTypeIdentifier</key>
+ <string>com.apple.Automator.text</string>
+ <key>workflowTypeIdentifier</key>
+ <string>com.apple.Automator.servicesMenu</string>
+ </dict>
+</dict>
+</plist>

0 comments on commit 9d2d29d

Please sign in to comment.