Compare commits
2 Commits
51fbf15428
...
documentat
| Author | SHA1 | Date | |
|---|---|---|---|
| 1680390463 | |||
| d804270ac9 |
31
README.md
31
README.md
@@ -1,6 +1,6 @@
|
||||
# Show Hidden
|
||||
|
||||
Shows or hides hidden files in mac finder.
|
||||
Shows or hides hidden files in mac finder. In old versions of OSX this isn't a feature of Finder.
|
||||
|
||||
It's a very basic shell script.
|
||||
Here's the full thing.
|
||||
@@ -19,12 +19,14 @@ fi
|
||||
exit
|
||||
```
|
||||
|
||||
This script has been wrapped in a .dmg file for ease of use.
|
||||
|
||||
**[Note]:** *Only works on OSX.* It shouldn't damage anything if you run it on another system with bash installed but it won't do anything either.
|
||||
|
||||
## Requierments
|
||||
|
||||
A version of OSX around 10.6
|
||||
OSX 10.6.8 is the only thing this has been tested on. If you have a simi-modern version of OSX/macOS this functionality is now built into Files.
|
||||
OSX 10.6.8 is the only thing this has been tested on. If you have a simi-modern version of OSX/macOS this functionality is now built into Finder.
|
||||
|
||||
## Running
|
||||
|
||||
@@ -40,4 +42,27 @@ Two methods of running are provided.
|
||||
|
||||
* Download the [.dmg](https://efrick.ddns.net/git/manfromhuh/ShowHidden/releases).
|
||||
* Open the .dmg and drag the application to the Applications folder.
|
||||
* Run from the application menu.
|
||||
* Run from the application menu
|
||||
|
||||
Or download the [.app](https://efrick.ddns.net/git/manfromhuh/ShowHidden/releases) and either manualy move to the Applications directory or run it from the
|
||||
|
||||
## The DMG
|
||||
If you want to recreate the .app file.
|
||||
|
||||
1. Open Automator.
|
||||
2. Select `Application` as the type.
|
||||
3. Find and drag `Run Shell Script` to the sequence.
|
||||
4. Copy and paste the contents of `show_hidden.sh` into the script window.
|
||||
5. Name and save in `Application` format.
|
||||
6. *[Optional]* To add a custom icon:
|
||||
i. Obtain the image you want to use.
|
||||
ii. Open in Preview.
|
||||
iii. Save as `AutomatorApplet.icns` being sure to select `ICNS` format.
|
||||
iv. Open the .app by right clicking and selecting `Show Package Contents`.
|
||||
v. Go to the `Contents/Resources` directory and replace the existing `AutomatorApplet.icns` file with your custom one.
|
||||
vi. Close the .app in Finder
|
||||
|
||||
If you want to recreate the .dmg file.
|
||||
|
||||
1. Follow the instructions [here](https://www.wikihow.com/Make-a-DMG-File-on-a-Mac) and add a symbolic link to the `Applications` folder.
|
||||
2. Or use a tool such as [create-dmg](https://github.com/create-dmg/create-dmg). I can vouch for this tool working on OSX 10.6 as of version [1.0.8](https://github.com/create-dmg/create-dmg/releases/tag/v1.0.8).
|
||||
@@ -1,62 +0,0 @@
|
||||
<?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>AMIsApplet</key>
|
||||
<true/>
|
||||
<key>AMStayOpen</key>
|
||||
<false/>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleDocumentTypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>*</string>
|
||||
</array>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>Automator workflow file</string>
|
||||
<key>CFBundleTypeOSTypes</key>
|
||||
<array>
|
||||
<string>****</string>
|
||||
</array>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Viewer</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>Application Stub</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>AutomatorApplet</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.apple.automator.Show Hidden</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>Show Hidden</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.1</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>247.1</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>10.5</string>
|
||||
<key>LSMinimumSystemVersionByArchitecture</key>
|
||||
<dict>
|
||||
<key>x86_64</key>
|
||||
<string>10.6</string>
|
||||
</dict>
|
||||
<key>LSUIElement</key>
|
||||
<false/>
|
||||
<key>NSAppleScriptEnabled</key>
|
||||
<string>YES</string>
|
||||
<key>NSMainNibFile</key>
|
||||
<string>ApplicationStub</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string>NSApplication</string>
|
||||
</dict>
|
||||
</plist>
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
APPL????
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,273 +0,0 @@
|
||||
<?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>#show or hide hidden files in mac finder
|
||||
|
||||
show=$(defaults read com.apple.finder AppleShowAllFiles)
|
||||
if [ "$show" == "TRUE" ]
|
||||
then
|
||||
defaults write com.apple.finder AppleShowAllFiles FALSE;killall Finder
|
||||
else [ "$show" == "FALSE" ]
|
||||
defaults write com.apple.finder AppleShowAllFiles TRUE;killall Finder
|
||||
fi
|
||||
|
||||
exit</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>46E99D34-541D-4DFD-957C-B128F83D2093</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>D6C51654-D625-4F4A-B584-DCCB86326133</string>
|
||||
<key>UUID</key>
|
||||
<string>FC950196-8430-4CFE-B95C-1C28A840489F</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>309.500000:451.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>0.0</real>
|
||||
<key>subviewState</key>
|
||||
<array>
|
||||
<string>0.000000, 0.000000, 381.000000, 515.000000, NO</string>
|
||||
<string>0.000000, 516.000000, 381.000000, 136.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, 515.000000, NO</string>
|
||||
<string>164.000000, 0.000000, 217.000000, 515.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, 350.000000, 555.000000, NO</string>
|
||||
<string>0.000000, 556.000000, 350.000000, 148.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, 186.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, 697.000000, NO</string>
|
||||
<string>382.000000, 0.000000, 619.000000, 697.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, 619.000000, 506.000000, NO</string>
|
||||
<string>0.000000, 516.000000, 619.000000, 162.000000, NO</string>
|
||||
</array>
|
||||
</dict>
|
||||
<key>windowFrame</key>
|
||||
<string>{{680, 254}, {1000, 774}}</string>
|
||||
<key>workflowViewScrollPosition</key>
|
||||
<string>{{0, 0}, {619, 506}}</string>
|
||||
</dict>
|
||||
<key>workflowMetaData</key>
|
||||
<dict>
|
||||
<key>workflowTypeIdentifier</key>
|
||||
<string>com.apple.Automator.application</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -1,16 +0,0 @@
|
||||
<?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>BuildVersion</key>
|
||||
<string>2</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.1</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>247.1</string>
|
||||
<key>ProjectName</key>
|
||||
<string>Automator</string>
|
||||
<key>SourceVersion</key>
|
||||
<string>2470100</string>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
ShowHidden.dmg
BIN
ShowHidden.dmg
Binary file not shown.
@@ -1,11 +0,0 @@
|
||||
#show or hide hidden files in mac finder
|
||||
|
||||
show=$(defaults read com.apple.finder AppleShowAllFiles)
|
||||
if [ "$show" == "TRUE" ]
|
||||
then
|
||||
defaults write com.apple.finder AppleShowAllFiles FALSE;killall Finder
|
||||
else [ "$show" == "FALSE" ]
|
||||
defaults write com.apple.finder AppleShowAllFiles TRUE;killall Finder
|
||||
fi
|
||||
|
||||
exit
|
||||
Reference in New Issue
Block a user