Skip to content

Commit

Permalink
Refine the selected document script to specify the uncrustify configu…
Browse files Browse the repository at this point in the history
…ration file, and to use "quoted form" for the document path
  • Loading branch information
tonyarnold committed Nov 18, 2011
1 parent 4946d61 commit 7654d26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified Uncrustify Document.workflow/Contents/QuickLook/Thumbnail.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions Uncrustify Document.workflow/Contents/document.wflow
Expand Up @@ -51,7 +51,7 @@
<key>ActionParameters</key>
<dict>
<key>source</key>
<string>tell application id "com.apple.dt.Xcode" set current_document to source document 1 whose name ends with (word -1 of (get name of window 1)) save current_document set current_document_path to path of current_document set raw_source to text of current_document set formatted_source to do shell script "/usr/local/bin/uncrustify -f \"" &amp; current_document_path &amp; "\"" set text of current_document to formatted_sourceend tell</string>
<string>tell application id "com.apple.dt.Xcode" set current_document to text document 1 whose name ends with (word -1 of (get name of window 1)) save current_document set current_document_path to path of current_document set raw_source to text of current_document set formatted_source to do shell script "/usr/local/bin/uncrustify -c ~/.uncrustify.cfg -l OC -f " &amp; quoted form of current_document_path set text of current_document to formatted_sourceend tell</string>
</dict>
<key>BundleIdentifier</key>
<string>com.apple.Automator.RunScript</string>
Expand Down Expand Up @@ -107,7 +107,7 @@ end run</string>
<key>isViewVisible</key>
<true/>
<key>location</key>
<string>420.000000:754.000000</string>
<string>309.500000:554.000000</string>
<key>nibPath</key>
<string>/System/Library/Automator/Run AppleScript.action/Contents/Resources/English.lproj/main.nib</string>
</dict>
Expand Down

0 comments on commit 7654d26

Please sign in to comment.