Hot answers tagged folders
17
Appplescript & iCal
Open Applescript and enter the following code:
tell application "Finder"
delete folder "folder" of home
end tell
Replacing folder with the folder you want to delete, and save the file.
If the folder you want to delete is outside home directory, (for example the folder /Users) then replace the delete line with:
delete folder ...
14
autocd was added in Bash 4.0. You can install Bash 4 with Homebrew:
brew install bash
Add /usr/local/bin/bash to /etc/shells
chsh -s /usr/local/bin/bash
Open a new login shell (or a tab by default in Terminal or iTerm 2) and check echo $BASH_VERSION
12
It's got an NFS automounter map mounted on it, so NFS home directories will be automatically available there. Quoting man auto_master:
The auto_master file contains a list of the directories that are to be
automounted. Associated with each directory is the name of a map that
lists the locations of the filesystems to be automounted there. The
...
9
The command-line way:
Open Terminal (/Applications/Utilities) and type
chflags hidden /path/to/folder
replacing /path/to/folder with the POSIX-style path to the folder you want to hide (for example, a folder on your desktop called test would be ~/Desktop/test).
To unhide it, type chflags nohidden /path/to/folder.
The freeware way:
I haven't used it, ...
8
Enter in Terminal:
sudo chflags nohidden directoryname
Whereby directory name is the name of the directory that you want to see in Finder.
Reverse this by typing:
sudo chflags hidden directoryname
The Macintosh HD basically resembles the root directory. If you want it to appear on the desktop and in finder change this in the finder preferences.
...
7
Select the folder you want (or command + A to select all) and then press:
option + command + right arrow
and bob's your uncle.
And the left arrow undoes what the right arrow did, should you want to close things back up again.
7
Because of a lot of complaints of people used to the Windows way, merging folders is now a feature in OSX Lion :
This merge dialog will only show up if:
destination folder isn't empty
destination folder contents are different from to be copied one
So the way to merge folders in an officially supported way is to upgrade to Lion :-)
7
As you've noticed, recent versions of OS X only display generic folder icons in the sidebar. So why does Dropbox get special treatment?
The short answer is that Dropbox uses undocumented API to accomplish this. In non-technical speak, it's a special hack that's installed by the Dropbox application.
Some curious folks on StackOverflow found the specific ...
6
The default icons are stored in various locations inside /System/Library - is there a specific icon you're looking for?
Finder.app (/System/Library/CoreServices/Finder.app/Contents/Resources) has the Smart Folder icons and the Burnable folder icons for example.
Most of the more known icons (eg. pictures for the default folders among many others) can be ...
6
You can't put a folder in the left side of your Dock where the programs are, but you can drag a folder to the right side of your Dock. In Leopard (10.5) or later, by default, the folder will appear as a stack, but starting in 10.5.2, you have options for how the folder or stack appears. In Lion (10.7), for instance, you can select whether you want the folder ...
6
The Finder sidebar is designed to let you customize quite a few personal folders for rapid access.
This video is great to understand the basics:
Mac OS X: Using the sidebar
There are many guides on the web, but two support articles can get you started as well:
OS X Lion: What is the Sidebar?
OS X Lion: Organize the sidebar
Some people also like to ...
5
Short of getting a different mail client on your iPad I can get you more than half of the way there.
Set up gmail as Microsoft Exchange server (leave the domain blank, add user and password and let it try to connect. When it fails, use m.google.com for the server and you can choose mail, calendar, address data to use ActiveSync)
Once the first mail sync ...
5
I personally use symlinks to move all of those directories under my User account. I logged in as root and symlinked all of my directories "Documents' Downloads " Movies", etc and moved them to an external drive.
Mac OS sees the changes just fine and points to those directories (on the external drive) automatically and I have had no issues doing it this ...
5
Applications
Address Book
App Store
Automator
Calculator
Chess
Dashboard
Dictionary
DVD Player
FaceTime
Font Book
iCal
iChat
Image Capture
iTunes
Launchpad
Mail
Mission Control
Photo Booth
Preview
QuickTime Player
Safari
Stickies
System Preferences
TextEdit
Time Machine
Utilities
Activity Monitor
AirPort Utility
AppleScript Editor
Audio MIDI Setup
...
5
You can create a shell script and name it something like mkdir_WithIconFrom
#!/bin/sh
mkdir $1
cp $2/Icon\r $1
SetFile -a C $1
This will create a directory at the first path you specify on the command line with the icon from the existing directory whose path you specify second on the command line, assuming the target directory has a custom icon.
5
While we can only guess on Apple's motivations for certain decisions, the most obvious explanation would be that a "Users" folder has existed since Mac OS 9, before it was a Unix system, and Apple chose to stick with something familiar to their users. The same goes for other already familiar folders like "Applications".
This effectively translates in two ...
5
I looked at some of the saved search files in Finder's application bundle, and for example /System/Library/CoreServices/Finder.app/Contents/Resources/MyLibraries/myDocuments.cannedSearch/search.savedSearch used a format like this for excluding directories:
<key>FXScopeArrayOfPaths</key>
<array>
<string>~/</string>
...
4
PresButan: An idiotically named solution to a spectacular UI oversight (rather apropos, eh?).
It also lets you use either the backspace or delete key to delete files.
I can confirm it works (just installed it). Apparently it leverages the accessibility system and uses a daemon to catch the return events.
If you are on 10.3-10.5, you also have the option of ...
4
As I know you can not set it to enter in a normal way (but maybe exist some tricky way)
but you can change open shortcut by going to System Preferences > Keyboard > Keyboard Shortcuts tab from the left window choose Application Shortcuts and press + to add new shortcut then find Finder in Application and choose Open in Menu Title and press any desired ...
4
The fastest way using spotlight is to add kind:folder to the search term in the spotlight field.
You can use booleans, metadata tags like kind:music or date:yesterday and more as described in Specifying criteria in the Spotlight search field
I always forget about these and instead use the search window to build up a boolean criteria rather than use the ...
4
You can move your entire user account (home) folder using the following steps:
Click on Users & Groups in System Preferences.
Unlock the pane (lock icon).
Right click on your selected user and choose the "advanced" option from the list.
You will be greeted by the following screen:
From there, simply select the "home directory" to which you wish to ...
4
Well, the short answer is: Don't, because too many things depend on it. This is also the reason why Apple choose to make it difficult to rename these folders.
If you want to take the risk anyway, this answer to a somewhat related question should give you some ideas.
4
Unfortunately I dont think thats possible, since badges are rendered using code that needs to be included in the app: Finder would need to integrate the code to tell its badge to change.
Consequently, third party apps in theory could get the file count of your Downloads folder, and they could code a badge to display it, but they wouldn't be able to access ...
4
Select the folder you want in the Finder. While it is selected, press Command+T.
This will place the selected folder in the sidebar of any Finder window, as well as Open and Save dialog panes.
Mac OS X keyboard shortcuts (listed under 'Finder keyboard shortcuts')
I should add too that there's a recent folders list available in Finder. With Finder as ...
4
Hallelujah! I figured it out. Okay, so first thing I did was create a new account, as suggested by another answer. The problem did not occur in there, so clearly the problem was limited to my account. I then went into Safe Mode into my account. The problem did not occur as well. So clearly something was loaded in normal mode but not in safe mode that was ...
4
Finder offers the Go to Folder function (found in the Go menu, or by pressing ⇧⌘G), which allows you to type in a path, and has tab-completion (i.e. typing /us TAB r TAB doc TAB gets /Users/rob/Documents/).
It's not perfect, the main downfall is that it doesn't present multiple options, it just chooses the last alphabetical match (i.e. if you type do, in a ...
4
The shell in Terminal doesn't like white space in file names. That's what resulted in the error message. You need to use quotes to tell the shell that the second path is a single parameter, try
sudo mv ~/Downloads ~/synktorium/"disktop zi5"/
Alternatively, you could escape the single space before zi5
sudo mv ~/Downloads ~/synktorium/disktop\ zi5/
This ...
4
You can do this in the terminal (shell). Open the terminal and type cd ~/Desktop to change you current working directory to the Desktop.
Then for the different cases you listed:
mv *.PSD *.Ai *.INDD ~/Desktop/Workfiles
mv *.PNG *.JPG ~/Desktop/Pictures
mv *.doc *docx *.xls *.pdf ~/Desktop/Documents
mv file target is the command to move files. You can ...
3
Ok, I did a google search and came across a page where others are having the same problem.
The reply by etresoft - https://discussions.apple.com/message/15661045#15661045 - basically says to kill the Dock application and it should restart automatically, and then it should work.
I did that, started Activity Monitor, found Dock, and force-quit it, it started ...
3
As far as OS X is concerned, this is acceptable IF you have selected a non-case sensitive filesystem.
The non-case sensitive filesystem is the default, so unless you selected case sensitivity during installation of your operating system (or in Lion's most likely case, your previous operating system), you should be fine.
When selecting file system case ...
Only top voted, non community-wiki answers of a minimum length are eligible
