Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
thiemo committed Jan 27, 2015
0 parents commit 1df9b14
Show file tree
Hide file tree
Showing 7 changed files with 225 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear on external disk
.Spotlight-V100
.Trashes

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Toggle Hidden Files
===================

OS X Automator workflow which toggles invisible files in Finder to be visible.

## Installation
* Move to ~/Library/Services/

## Usage
* Right-Click on any file or folder in Finder and choose Services ▸ Toggle Hidden Files
43 changes: 43 additions & 0 deletions Toggle Hidden Files.workflow/Contents/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?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>CFBundleName</key>
<string>Toggle Hidden Files</string>
<key>CFBundleDevelopmentRegion</key>
<string>en_US</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>Toggle Hidden Files</string>
<key>CFBundleIdentifier</key>
<string>ch.thiemo.services.toggleHiddenFiles</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>LSHasLocalizedDisplayName</key>
<true/>
<key>LSUIElement</key>
<string>1</string>
<key>NSServices</key>
<array>
<dict>
<key>NSMenuItem</key>
<dict>
<key>default</key>
<string>Toggle Hidden Files</string>
</dict>
<key>NSMessage</key>
<string>runWorkflowAsService</string>
<key>NSRequiredContext</key>
<dict>
<key>NSApplicationIdentifier</key>
<string>com.apple.finder</string>
</dict>
<key>NSSendFileTypes</key>
<array>
<string>public.item</string>
</array>
</dict>
</array>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// !!! BINARY PROPERTY LIST WARNING !!!
//
// The pretty-printed property list below has been created
// from a binary version on disk and should not be saved as
// the ASCII format is a subset of the binary representation!
//
{ CFBundleDisplayName = "Versteckte Dateien anzeigen";
CFBundleName = "Versteckte Dateien anzeigen";
NSHumanReadableCopyright = "Copyright © 2015 Thiemo Gamma \nAlle Rechte vorbehalten.";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// !!! BINARY PROPERTY LIST WARNING !!!
//
// The pretty-printed property list below has been created
// from a binary version on disk and should not be saved as
// the ASCII format is a subset of the binary representation!
//
{ "Toggle Hidden Files" = "Versteckte Dateien anzeigen"; }
134 changes: 134 additions & 0 deletions Toggle Hidden Files.workflow/Contents/document.wflow
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
<?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>409</string>
<key>AMApplicationVersion</key>
<string>2.5</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>AppleScript ausführen</string>
<key>ActionParameters</key>
<dict>
<key>source</key>
<string>set question to display dialog "Toggle hidden files in Finder?" buttons {"Show", "Hide", "Cancel"} default button 3set answer to button returned of questionif answer is equal to "Show" then do shell script "defaults write com.apple.finder AppleShowAllFiles YES" do shell script "killall Finder" display notification "Invisible files are now unhidden" with title "Toggle Invisible Files" subtitle "" beep # beep onceend ifif answer is equal to "Hide" then do shell script "defaults write com.apple.finder AppleShowAllFiles NO" do shell script "killall Finder" display notification "Invisible files are now hidden" with title "Toggle Invisible Files" subtitle "" sound name "Glass"end if</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>B737937B-739E-4CD9-8FB9-36AB51E62264</string>
<key>Keywords</key>
<array>
<string>Ausführen</string>
</array>
<key>OutputUUID</key>
<string>AA214A94-3C1A-4923-B5EC-188B9641E4DB</string>
<key>UUID</key>
<string>C9AEBF6C-FB59-4A9D-B621-3B9302A59FEC</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>isViewVisible</key>
<true/>
<key>location</key>
<string>529.000000: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>serviceApplicationBundleID</key>
<string>com.apple.finder</string>
<key>serviceApplicationPath</key>
<string>/System/Library/CoreServices/Finder.app</string>
<key>serviceInputTypeIdentifier</key>
<string>com.apple.Automator.fileSystemObject</string>
<key>serviceOutputTypeIdentifier</key>
<string>com.apple.Automator.nothing</string>
<key>serviceProcessesInput</key>
<integer>0</integer>
<key>workflowTypeIdentifier</key>
<string>com.apple.Automator.servicesMenu</string>
</dict>
</dict>
</plist>
Expand Down

0 comments on commit 1df9b14

Please sign in to comment.