Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.9: Encrypt/Password-Protect a PDF in Preview Apps
With the latest versions of (since OS X v10.8, I believe) which save versions of files rather than the old standard Save dialogues, it took me a while to figure out how to Save As... and encrypt a PDF file with a password.

While clicking on the File menu, press the Option key, which causes the Duplicate menu item to become Save As... instead. Then you'll see the familiar Save As.. sheet with the Encrypt checkbox. Enabling this allows you to set a password for the PDF file.

[crarko adds: I tested this, and it works as described. This may be common knowledge, but serves as another example of why it's often helpful to explore the modifier keys in an application before getting too frustrated.]
  Post a comment  •  Comments (6)  
  • Currently 2.67 / 5
  You rated: 1 / 5 (6 votes cast)
[7,247 views] Email Article To a Friend View Printable Version
Export vector drawings from Keynote to a PNG with transparency Apps
Instead of buying expensive vector drawing software, Keynote can be used as a simple but great vector drawing tool. The problem is you can only export entire slides as images from the File menu and there will be a white background. There is no obvious way of exporting just the vector art to an image file. Fortunately there is a solution. Use the following method to extract just your vector art creation to a .png file with alpha transparency.
  • Create a vector-based drawing.
  • Drag and select the entire vector drawing you are going to export.
  • Choose Edit » Copy from the menus.
  • Open
  • In Preview choose File » New from Clipboard.
  • The vector drawing will then appear with a transparent background, ready to be exported as a PNG.
[crarko adds: It seems like a quick, cheap way to go the job. Probably not for all situations.]
  Post a comment  •  Comments (4)  
  • Currently 2.20 / 5
  You rated: 2 / 5 (5 votes cast)
[6,802 views] Email Article To a Friend View Printable Version
Display iTunes artwork in Growl notifications Apps
OS X and Growl notifications are AppleScriptable and great for displaying user-defined text, but not so hot for user-defined images. OS X can only display the sending application's icon, and Growl no longer accepts raw iTunes artwork image data or regular image files.

Growl's iTunes limitation can be overcome by converting an iTunes track's raw artwork image data into a TIFF file that can be read and passed to Growl:
tell application "iTunes" to set _rawData to raw data of artwork 1 of current track

set _startupDisk to (path to startup disk as text)

set _tempTiffFile to (open for access file (_startupDisk & "tmp:iTunesTiffArtwork.tiff") with write permission)
	write _rawData to _tempTiffFile starting at 0
	close access _tempTiffFile
on error a number b
	close access _tempTiffFile
end try

-- Use 'sips' to make it a TIFF file:
do shell script "sips --setProperty format tiff /tmp/iTunesTiffArtwork.tiff"

set _tempTiffFile to open for access file (_startupDisk & "tmp:iTunesTiffArtwork.tiff")
	set _readImage to read _tempTiffFile as "TIFF"
	close access _tempTiffFile
on error a number b
	close access _tempTiffFile
end try

tell application id "com.Growl.GrowlHelperApp"
	set the allNotificationsList to {"AppleScript Notification", "Another AppleScript Notification"}
	set the enabledNotificationsList to {"AppleScript Notification"}
	register as application "Growl AppleScript Sample" all notifications allNotificationsList 
		default notifications enabledNotificationsList icon of application "iTunes"
	notify with name "AppleScript Notification" title 
		"Current Track's Artwork" description "Converted to a TIFF file in '/tmp'" 
		application name "Growl AppleScript Sample" image _readImage with sticky
end tell
The above script should display the current track's artwork in a Growl notification. Here's a script that displays iTunes artwork and a lot of other useful track information. It looks like this.

[crarko adds: I haven't tested this one. I did verify that the scripts compile, and that the downloadable script is safe. At the moment, I don't have the ability to archive that script here for FTP, but I'm working on that.]
  Post a comment  •  Comments (0)  
  • Currently 2.67 / 5
  You rated: 4 / 5 (6 votes cast)
[4,942 views] Email Article To a Friend View Printable Version
iOS: Search text in Google through contextual menus iOS devices
Unlike with the Mac, in iOS there is no way to select text and search for it on Google in a new tab. There is, however, a workaround that brings about the same result on iOS.

Select text in Safari to bring up the context menu on iOS and then tap on Define. This brings up the dictionary panel for the selected text. If you've selected a word that is not in the dictionary, or multiple words or usually even if the word is in the dictionary, on the bottom right there is Search Web. Tapping that opens a new tab and searches for the selected text. This is equivalent to selecting text, copying, opening new tab, pasting the text in omnibar.

Things to note:
  • Even though the hint mentions Google, this uses the default search engine set in the Safari preferences so your preference is respected.
  • This is not specific to Safari. Any app that allows selection of text, and brings up the contextual menu will work with this by opening Safari.
[crarko adds: I tested this, and it works as described. I didn't try out all the combinations, though.]
  Post a comment  •  Comments (0)  
  • Currently 3.13 / 5
  You rated: 5 / 5 (8 votes cast)
[4,829 views] Email Article To a Friend View Printable Version
Make Time Machine use a Local Volume as a Network Volume Network
This procedure shows you how to prevent Time Machine from using all available free space on a local volume by backing up to a sparse disk image bundle stored on a shared folder on a local volume.

Time machine uses a feature of the HFS+ filesystem that was introduced in Mac OS X 10.5 (Leopard) called 'directory hard links.' Like file hard links, a directory that is hard linked to another directory is not actually a distinct directory, but is instead a pointer to the original directory. Time Machine uses these directory hard links to reduce duplication and save space by making references to entire directory trees whose contained files have not been modified. To properly copy or duplicate a Time Machine backup, these directory hard links must be preserved. Unfortunately, directory hard links are proprietary to Apple. Apple discourages their casual use by third party developers because, if used incorrectly, they could create recursive directory structures that would render a volume effectively useless. This introduces obstacles to anyone wishing to make copies of a Time Machine volume.

Time Machine may be configured to back up to a local volume that is connected directly to a Mac (either internally, or externally with a Firewire or USB connection), where it creates a Backups.backupdb folder at the root of the volume, storing all of the backup data in the volume's native file system using the previously mentioned directory hard links. Unfortunately, Time Machine will not back up to a local directory, but instead requires an entire volume be dedicated to backups. Further, Time Machine will utilize as much free space as possible on the volume. To prevent Time Machine from filling a disk, you could partition the disk to create multiple volumes, dedicating only one of the partitions to Time Machine backups. Yet you would still have no easy way to copy the backup data off the partition, due to the directory hard links.

Time Machine may also be configured to back up to volume that exists on a remote Mac and is mounted locally as a shared network volume. In this configuration, Time Machine creates a sparse disk image bundle which contains its own internal file system where backup data is stored. Since the backup data (with directory hard links) is stored within a self-contained disk image, one can easily make a copy of the entire disk image without worrying about effecting the directory hard links contained within the disk image. For this reason, backing up to a shared volume could be preferable for those who don't want to dedicate an entire volume to backups, or who want to be able to easily make file system level copies of the backup data for added security.
read more (475 words)   Post a comment  •  Comments (9)  
  • Currently 3.17 / 5
  You rated: 3 / 5 (6 votes cast)
[7,287 views] Email Article To a Friend View Printable Version
10.9: Disable power button sleep System 10.9
Here is a way to disable sleeping when pressing the power button on 10.9.2. In Terminal, type in the following command and then press Enter.

defaults write PowerButtonSleepsSystem -bool no

This causes the 'Are you sure you want to shut down your computer now?' dialog to come up much quicker too.

[crarko adds: I tested this, and it works as described. I had to log out and log back in; I'm not sure if that's necessary.]
  Post a comment  •  Comments (9)  
  • Currently 3.90 / 5
  You rated: 1 / 5 (10 votes cast)
[8,631 views] Email Article To a Friend View Printable Version
Keychain Access now supports iCloud Secure Notes
The Secure Notes feature in Keychain Access now allows syncing of notes across multiple Macs using iCloud Keychain.

To add a note to be synchronized across all of your configured Macs, select the iCloud keychain from the list and select File » New Secure Note item.... Make a title for the note, input some content, and save it. This note will now appear across all Macs. This feature is still exclusive to Mac OS; there is no iOS support yet.

Another way to add a note to the iCloud keychain is to drag an existing Secure Note from another keychain onto the iCloud keychain icon in the keychain list. Option+drag to copy, or just move it with drag and drop without a modifier key.

[crarko adds: I didn't have a chance to test this yet. I hope Apple does add this to iOS as well. It would be nice to have things go the other way.]
  Post a comment  •  Comments (1)  
  • Currently 3.00 / 5
  You rated: 1 / 5 (5 votes cast)
[6,190 views] Email Article To a Friend View Printable Version
10.9: Smart folders on the Dock System 10.9
In OS X 10.9 Mavericks a smart folder (or a saved search) dragged to the Dock behaves like a folder (smart folders by default are saved under ~/Library/Saved Searches). Right click gives sorting, display and viewing options similar to ordinary folders dragged to the Dock. A drawer icon is shown if Display as Folder option is selected. In grid view Quick Look works, too.

I did not check if it works under 10.8 or 10.7. I have to mention that there was already a hint about how to add 'recent things' stack to the Dock.

[crarko adds: I tested this, and it works as described.]
  Post a comment  •  Comments (1)  
  • Currently 2.29 / 5
  You rated: 1 / 5 (7 votes cast)
[6,000 views] Email Article To a Friend View Printable Version
Put image/video inside secure notes in Keychain Apps
I'm not sure if this is documented already. When you create a secure note from Keychain, it will accept an image or movie just as easily as it will accept text. I was able to put an image in one note and a movie in another. You can also play the movie while it's secured inside the note.

Create a secure note from the menu bar, then copy and paste the image into the note. That's it, the image is saved inside a secure note. You're done.

To put a movie inside a secure note, go to the file location on the Finder to locate the movie. Drag the movie to the body of the secure note.

[crarko adds: I'm not sure if it's documented either. This is a fairly old submission in the queue, so things may have changed recently.]
  Post a comment  •  Comments (5)  
  • Currently 1.22 / 5
  You rated: 1 / 5 (46 votes cast)
[4,876 views] Email Article To a Friend View Printable Version
Quickly close all tabs in iOS 7 iOS devices
As satisfying as the swipe to close feature in mobile Safari is, it becomes a bit of a chore to close more than a few tabs.

To close all tabs at once, tap the new tab icon (two overlapping squares), tap Private, and then Close All. Repeat the first two steps and tap '+' (or the screen) to get back to an empty Safari in your preferred browsing state.

I only have an iOS 7 device to test this in.

[crarko adds: I tested this, and it works as described. I also only have iOS 7.]
  Post a comment  •  Comments (0)  
  • Currently 1.57 / 5
  You rated: 2 / 5 (7 votes cast)
[4,843 views] Email Article To a Friend View Printable Version