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

Mavericks - Adding apps to the Finder Toolbar System
Looks like Mavericks 10.9 has changed the behavior for adding application/document shortcuts to the Finder toolbar.

Where before you could simply drag any icon up to the Finder toolbar and hold it there for a second to add it, you now need to first hold down Option+Command and then start dragging the desired icon to the toolbar.

You can still remove the icons the same way as before: holding down Command, dragging the icon away from the toolbar and then releasing.
  Post a comment  •  Comments (6)  
  • Currently 4.13 / 5
  You rated: 5 / 5 (8 votes cast)
 
[23,296 views] Email Article To a Friend View Printable Version
Mavericks - Change resolution of headless Mac Mini System
Finally after updating to Mavericks I thought I'd have another crack at changing the resolution of my headless Mac mini without using the VGA adapter hack. It is now much easier, as long as you know the trick to it.

First off you need an app to change the screen resolution (scrutil no longer worked for me so I downloaded Display Menu (free) from the Mac App Store).

After changing the display resolution my VNC/Screen Sharing sessions kept blacking out and I couldn't see anything so I fired up SSH and killed the screen sharing agent (killall ScreensharingAgent) and bam finally my remote screen lit up at my specified resolution (2560x1440). However my Dock was still in the middle of the screen (and killing the Dock seems to reset the resolution), so just right clicking the dock and changing its location made it fix itself up :)
  Post a comment  •  Comments (7)  
  • Currently 2.71 / 5
  You rated: 5 / 5 (7 votes cast)
 
[17,831 views] Email Article To a Friend View Printable Version
Dictate without an Internet connection in Mavericks System
Starting with OS X 10.8 Mountain Lion, your Mac could take dictation. But, just as with the dictation feature on iOS, the OS X incarnation required an Internet connection, couldn't show its progress while you spoke, and could only listen for about 30 seconds at a time.

That all changes with a single checkbox in Mavericks (OS X 10.9). Fire up System Preferences and click on the Dictation & Speech pane. There, you'll find a checkbox for Use Enhanced Dictation. The first time you check it, you'll need to wait out a hefty download (between 700 and 800 megabytes), but once you're done, you can dictate a lot more freely.

Now, transcription happens on your Mac, not Apple's servers. And you can see the transcription appear as you speak, in real-time. In fact, the cursor remains active too; if you see a mistake, you can click around (without speaking) to make your edits, put the cursor back where it needs to be, and start talking again. Unfortunately, however, Mavericks doesn't offer any ability to use speech-based editing tricks: If you say "delete that," Mavericks types "delete that."
  Post a comment  •  Comments (1)  
  • Currently 3.25 / 5
  You rated: 1 / 5 (8 votes cast)
 
[7,182 views] Email Article To a Friend View Printable Version
Snooze Notification Center reminders for varying lengths of time in Mavericks System
New in Mavericks, Notification Center banners for reminders include a Snooze button. But that button, which removes the reminder and brings it up again ten minutes later, offers more customization than is immediately apparently.

Click and hold on the Snooze button to bring up a drop down menu with snooze times ranging from minutes to hours to days to weeks.

  Post a comment  •  Comments (4)  
  • Currently 3.50 / 5
  You rated: 1 / 5 (10 votes cast)
 
[7,507 views] Email Article To a Friend View Printable Version
10.9: Preferences are cached System
There are many hints here and on the net involving changing user defaults by running defaults write or directly editing the .plist files in Library/Preferences. Until 10.9, restarting the program was enough to apply the new defaults.

Since OS X Mavericks, the defaults system is caching the preferences system-wide (i.e. not in the application's process!) to improve performance of the user defaults API. If you use the defaults command, you are fine, since it appears to use the normal user defaults API.

On the other hand, if you edit a preference .plist file with a text or plist editor (even the one included with the most recent Xcode 5 preview), the cache will not be flushed and even after restarting the program in question, it will retain the old preferences.

The API documentation states that the cache is synchronized with the on-disk plist file contents periodically, but does not indicate how often, let alone how to flush the cache manually.

Logging out and back in appears to flush the user defauts cache, but other than that, the defaults command is currently the only way to reliably change preferences without waiting for the timeout.
  Post a comment  •  Comments (14)  
  • Currently 2.73 / 5
  You rated: 5 / 5 (11 votes cast)
 
[22,877 views] Email Article To a Friend View Printable Version
Service to "Make Protected Zip" files Apps
Mac OS X has long supported password encrypted zip files, but you have to use command line to do it. So here is a simple Automator based Service to give you a GUI.

OpenAutomator and choose "Service" (the gear). Change "Service receives selected" to Files or folders in "Finder.app"

Add the "Run Applescript" step and then copy the code below and replace all the code in the "Run Applescript" command with this code.

Choose save, naming it something like "Make Protected Zip", then test it by going to the finder and selecting one or more files/folders. Scroll down to the "Services" Menu and select the service with the name you just saved as.


on run {input, parameters}
	set dialogResults to display dialog "Name for zipped file (no extension)" default answer "Archive" buttons {"OK", "Cancel"} default button "OK"
	if button returned of dialogResults is "OK" then
		set passwd to text returned of (display dialog "password for zipped file" default answer "password" buttons {"OK", "Cancel"} default button "OK")
		
		set archiveName to text returned of dialogResults
		
		tell application "Finder"
			set archiveFileName to archiveName & ".zip"
			-- Append on a number if file exists.
			set suffix to 1
			set theFileExists to true
			repeat while theFileExists
				try
					set archiveFile to ((container of (item 1 of input) as Unicode text) & archiveFileName)
					if exists file archiveFile then
						set archiveFileName to archiveName & suffix & ".zip"
						set suffix to suffix + 1
					else
						set theFileExists to false
					end if
				end try
			end repeat
		end tell
		set itemStr to ""
		repeat with thisItem in input
			set itemPath to quoted form of (POSIX path of thisItem)
			tell application "Finder"
				set parentFolder to POSIX path of (container of thisItem as alias)
			end tell
			set itemStr to itemStr & " " & itemPath
		end repeat
		set zipFile to quoted form of (parentFolder & archiveFileName)
		set cmd to "zip -P " & passwd & " -rj " & zipFile & " " & itemStr & " -x *.DS_Store"
		do shell script cmd
	end if
	return
end run
  Post a comment  •  Comments (14)  
  • Currently 4.25 / 5
  You rated: 5 / 5 (8 votes cast)
 
[7,918 views] Email Article To a Friend View Printable Version
Get iOS 7 to remember passwords even for sites that don't want it to iOS devices
iOS 7 uses iCloud to store your passwords for websites you log into. But sometimes, by default, Safari won't prompt you to save passwords for certain sites—sites that explicitly request that web browsers not save such data.

But they're your passwords, and Apple clearly thinks you deserve a vote on whether your iOS device saves them. Head over to the Settings app, tap on Safari, and then tap on Passwords & Autofill. Enable the Always Allow setting, and Safari will now be willing to save every single password you enter, even on sites that attempt to disallow that option.
  Post a comment  •  Comments (9)  
  • Currently 3.11 / 5
  You rated: 5 / 5 (9 votes cast)
 
[20,231 views] Email Article To a Friend View Printable Version
Use dseditgroup to allow users access to services (ssh, screen sharing, and more) System
Want to add a user to a specific group using the command line? dseditgroup is your friend! Add users, or groups, to a group you create or system groups which control access to services.

Make sure to insert your local admin's short name (localadmin) and the user (username) or group (groupname) you're trying to add.

Remote Login (SSH)
User: dseditgroup -o edit -n /Local/Default -u localadmin -p -a username -t user com.apple.access_ssh
Group: dseditgroup -o edit -n /Local/Default -u localadmin -p -a groupname -t group com.apple.access_ssh

Screen Sharing
User: dseditgroup -o edit -n /Local/Default -u localadmin -p -a username -t user com.apple.access_screensharing
Group: dseditgroup -o edit -n /Local/Default -u localadmin -p -a groupname -t group com.apple.access_screensharing

Print Administrators
User: dseditgroup -o edit -n /Local/Default -u localadmin -p -a username -t user _lpadmin
Group: dseditgroup -o edit -n /Local/Default -u localadmin -p -a groupname -t group _lpadmin

Explanation:
-o specifies the operation (edit in this case)
-n specifies the domain (another example is /LDAPv3/127.0.0.1 on an ODM)
-u is the admin user to authenticate with (use diradmin for network domains)
-p tells it to prompt for a password
-a tells it to add a user or group
-t specifies the type, user or group
  Post a comment  •  Comments (0)  
  • Currently 4.20 / 5
  You rated: 5 / 5 (5 votes cast)
 
[8,295 views] Email Article To a Friend View Printable Version
Shell script to delete all printers Printers
The following shell script will delete all printers. Make sure the file is executable after you create it (chmod ugo+x /path/to/delPrinters.sh).


#!/bin/sh

for printer in `lpstat -p | awk '{print $2}'`
do
echo Deleting $printer
lpadmin -x $printer
done
  Post a comment  •  Comments (3)  
  • Currently 2.83 / 5
  You rated: 3 / 5 (6 votes cast)
 
[7,121 views] Email Article To a Friend View Printable Version
Use AppleScript and Remote Desktop to set a non-default NetBoot startup disk OS X Server
The following AppleScript will use Remote Desktop to set a non-default NetBoot image as the startup disk. Make sure to insert your server's IP Address and the image name...

tell application "Remote Desktop"
	set theServer to "192.168.1.8"
	set theImage to "10.8.5 NetBoot"
	set theComputers to the selection
	set theTask to make new set network startup disk task with properties {from server:theServer, mount volume:theImage, restarting:true}
	execute theTask on theComputers
end tell
  Post a comment  •  Comments (4)  
  • Currently 1.80 / 5
  You rated: 1 / 5 (10 votes cast)
 
[5,903 views] Email Article To a Friend View Printable Version