Today, I stumbled on this tip from Apple's Pro Tip of the Week page -- it explains how to copy a filename only, instead of the entire object, when copying things in the Finder (enter edit mode for the filename, then copy). But what this tip do not mention is:
If you copy and paste a folder to a Mail message, you will send a sort of alias that, if clicked, will open the same folder on receiver's computer.
If you copy anything to TextEdit, you will get a low-res icon of the item you pasted. In fact, this is not a normal icon, as you are pasting the entire item -- application or alias (in case of folder).
If you paste an item to a place (field in a form or text editor) that can't receive rich-formatted items, then you will get the item's name.
[robg adds: I'm pretty sure we have the second item above in a hint here somewhere, but I couldn't find it with a quick search.]
Here's an easy way to create a copy of all sizes of a file's icon from the Finder:
Select the file whose icon you want to copy.
Copy it (using the Edit menu, Command-C, or the contextual menu).
There's no need to open a Get Info window first; just copy the selected file. You can then put this into a .icns file using Preview's File -> New from Clipboard command (Command-N). This method includes all sizes and alpha channels -- you get everything. And from there, you can save as TIFF or PNG or any other format.
Saving to TIFF will keep all the images (TIFF supports multiple images per file, and Preview takes advantage of this). When you save to any other format, such as PNG, you can choose any of the representations in the drawer. Whichever one is selected is the one that will be saved.
On numerous occasions, I've been asked by my PC-using colleagues if there was a way to print out the contents of a folder. My quick hack usually involved hitting the Print Screen button with Windows Explorer open on the specified folder, and then pasting the image into word processor for printing.
Automator makes it easy to get the contents of any folder on a Mac as a text file ready for printing, batch processing or any other purpose.
First, open Automator and from the list of Finder Actions, double click on Get Selected Finder Items (or drag it from the Action list to the right side of the window). Then, double click on Get Folder Contents, and finally, double click on New Text File from the list of TextEdit Actions.
For more flexibility, under the New Text File action's options, check Show Action When Run and Show Selected Items with both Save As and Where options checked. The Finder will in return, ask you where to save the file and how to name it.
Save the action as a Finder plug-in, and control-click on any folder in the Finder to run your newly-created action from the contextual menu. The contents of specified folder will be saved in a text file (one item per line), incredibly useful in certain situations. (Now, if scripting is your niche, I also find it useful to trim the path of the file and keep the names only...)
[robg adds: As an alternative, we've covered printing folder contents via drag-and-drop to a desktop printer icon before. For more advanced Finder window printing needs, I'm partial to Print Window.]
For some strange reason, my Finder sidebar started to add aliases by itself. Sometimes it would duplicate multiple copies of aliases a few times, but these duplicates were actually just ghost aliases, but it still slowed down the Finder.
Finally, I trashed the file com.apple.sidebarlists.plist, and that solved the problem. Here's the path to the file:
[robg adds: This is probably a somewhat isolated incident (I've never seen such issues on my Macs), but for those who are having similar sidebar issues, knowing the name of the file to remove will save a bit of time.]
In case you're new to the Mac, let me give you a bit of a background. In the Mac OS X filing system, there are some special kinds of folders that are treated like files. These folders-treated-as-files are known as packages. A Pages document, for example, is actually a folder package. So are most applications.
At times, it can be advantageous to see the contents of these packages, and you can do that by control-clicking on the package and choosing 'Show Package Contents' from the pop-up menu, or by selecting the package and clicking on the Action button in the Finder's toolbar and selecting 'Show Package Contents.' Enter my dilemma. As a long-time Mac user, whenever I need to navigate through the filesystem, I usually use keyboard shortcuts such as starting to type the name of the file/folder I want to navigate to or through. However, there is no keyboard shortcut to reveal the contents of packages, and since the command is not found in the Finder's menu bar, I can't easily create one through System Preferences.
The solution: Automator and AppleScript with GUI Scripting.
I was stumped by how to quickly establish a picture as a Desktop background image. After some thought, I have created an interesting solution. First, launch Automator, in your Applications folder. Once it's running, choose File -> New (if necessary) to give yourself a blank working slate.
Then follow these steps to create your new Desktop picture changing application:
Choose File -> New
In the Library column, choose Applications -> Finder.
In the Action column, double-click on the Get Specified Finder Items entry.
In the same Action column, double-click on the Set the Desktop Picture item.
Now choose File -> Save As. Here we type the name, for example Picture to Desktop, and below in the File Format drop-down list, change Workflow to Application.
Specify any place to save file. For example, your Home directory.
Open your Home directory. It is possible (with the Get Info window for the new file) to paste a new icon onto the application, in case you don't want the default Automator icon.
Don't close your Home directory, and then drag your new application to the Dock.
There you go! Now the Desktop wallpaper is established by simply dragging an image onto the Dock icon for your new application.
The program reacts to files which are not the images as follows: it deletes existing wallpapers, and does not put anything in exchange -- simply a screen of continuous color. It is possibly to get rid of this issue, if between Get Specified Finder Items and Set the Desktop Picture you insert the Filter Finder Items Action, and list the corresponding filters for image files.
[robg adds: In my testing, the results were somewhat inconsistent -- sometimes this script worked, sometimes it didn't. I tried using various methods of getting the Finder selection, but everything I tried had the same issue. I'm not sure if it's something particular to my setup, or just a not-quite-there implementation of setting the desktop picture via Automator.]
Sometimes I'd download some file that, after unzipping, will create a folder named something like coolapp 1.2. I often rename the folders to my liking, so I'd click on the folder's name in the Finder and rename it to something like coolappfolder. However, the Finder would try to keep the .2 file extension, and would return the folder's new name as coolappfolder.2. This didn't seem right to me, so I tried a few more times, and sure enough, the Finder would always keep the dot.X extension.
So, here's the hint ... rather than making a new folder called coolappfolder and moving the contents of the coolappfolder.2 into it, you can simply use Get Info (Command-I), and rename the folder in the Name & Extension field. Voila! The silly folder extension is gone gone dot gone.
[robg adds: In testing, I couldn't replicate this issue, but I'm not sure which version of OS X the poster is using, so perhaps this affects something other than 10.4.7.]
This is a short and simple hint, but it is an undocumented feature, I believe...
If you have a Finder window open in List view and have an item selected, it is possible to easily jump to the first or last item in the list by hitting Option-Up Arrow or Option-Down Arrow, respectively.
When you use find in the Finder (Command-F), you don't get the Spotlight side-bar that lets you control grouping and sorting of the search results.
You can, however, still group results by date or kind, and sort by name, date or kind within those groupings. You just need to have the View Options dialog visible. Control-click on any of the info icons (the circled 'i') to the right of the results, and select Show View Options from the contextual menu. Choose your Group and Sort options, and watch your results change.
[robg adds: Hiding in plain sight, I had no idea this was available for Spotlight's results in Finder searches. Now that I see it, of course, it's everywhere -- it's the standard Finder View Options dialog, so Command-J will show it (as will View: Show View Options and the Gear icon in the toolbar).]
and then restart Finder. When files or folders are selected in Finder, the Cut command will be active in the Edit menu, and present in the context menu.
Unfortunately, all it does today is a move-to-trash, and there's no ability to paste and have the file retrieved and put in the active Finder window or selected folder. So I don't know if this is a feature half-done, a feature dead-ended, or just a redundant command disabled because it would confuse people.
I kind of hope it's half-done and will be available in 10.5. The move-to-trash as an interim step appeals to me, because while the superficial user experience is consistent with any other cut operation, it's less inherently destructive.
[robg adds: I tested it and it works (half works?) as described. If you want to disable it again, just repeat the above command but replace the 1 with a 0. This will leave the value in your Finder's preferences, but it will be disabled. If that bothers you for some reason, you can delete it entirely by typing defaults delete com.apple.finder AllowCutForItems. If someone can test this on 10.3, please comment -- I don't have a bootable 10.3 partition at the moment.]