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

Go to a specific line in TextEdit Apps
Light-duty coders may be a bit frustrated when a browser or compiler chucks an error that cites a line number. Yes, you can get lovely third-party editors that make it much easier to work with such things, but what if you're keen on simple TextEdit?

Hit Command+L to open a "Select Line" dialog. (It also lives, oddly, under the "Find" sub-menu.)

Type in a line number and you're off to the races!
  Post a comment  •  Comments (0)  
  • Currently 2.67 / 5
  You rated: 2 / 5 (9 votes cast)
 
[4,509 views] Email Article To a Friend View Printable Version
Shortcut when adding an email account in Mail Apps
Here is a shortcut to the protocol selection sheet when adding a new email account in Mail in Mavericks.

When adding other email accounts in Mail (in 10.9 Mavericks, I don't know about earlier versions) hold down the Option key to turn the Create button into a Next button instead. This saves you the trouble of entering a fake email address to get to the sheet where you can select the protocol type.

[crarko adds: This goes back at least as far as Snow Leopard (where the button changed to Continue), but new users may find it helpful information.]
  Post a comment  •  Comments (0)  
  • Currently 2.17 / 5
  You rated: 3 / 5 (6 votes cast)
 
[5,639 views] Email Article To a Friend View Printable Version
Restore InDesign CS5 PDF Export Progress Bar Apps
I was attached to InDesign CS3 for a long time but had to install CS5 to test a content management system. The second thing that made me crazy (the first thing being the application frame) was the absence of a progress bar when exporting a PDF.

Okay, might be a feature for most people because you can continue the work on that or any other document while the PDF export is in progress. But most of time I want to open the PDF in Acrobat or pass the PDF to another application after it's created. Now you have a zero kB PDF file until InDesign is finished with the export.

The following hint works in CS5, CS5.5, and CS6 as well:

Create a new blank text file with the file name DisableAsyncExports.txt and place that file in the InDesign application package itself (right-click on the application icon and select Show package content). Then go to the sub-directory Contents/MacOS and place the new file there.

After a restart of InDesign the progress-bars are back again, and you can tell immediately when the PDF is created.

[crarko adds: I suspect this is one of those things that will be undone by a software update. I would strongly suggest making a backup copy of the InDesign application file before making any changes, just in case. Out of curiosity, can someone using the cloud-based version of InDesign let us know if there is a progress bar or not?]
  Post a comment  •  Comments (2)  
  • Currently 2.00 / 5
  You rated: 1 / 5 (5 votes cast)
 
[5,021 views] Email Article To a Friend View Printable Version
A fix for some full page pop-unders in Safari Apps
Many are complaining about the recent occurrence of blank, full page windows popping up under the active window in Safari versions 5 and 7 (not sure about version 6) when clicking on a link.

This is due to the Glims update that came out this week. To solve this annoying behavior:

Go to Safari Prefs»Glims»Ads/Shopping, and check Off. Mine was set to Hit Me, which is the default. I don't remember seeing this behavior in Glims before.

[crarko adds: Hi, all; it's your guest editor, Craig Arko, in for a week. I don't use Glims, so I haven't tried this out. It seems plausible, but if people still observe the issue and this isn't the fix please make a comment.]
  Post a comment  •  Comments (3)  
  • Currently 2.20 / 5
  You rated: 2 / 5 (5 votes cast)
 
[4,589 views] Email Article To a Friend View Printable Version
Force spring-load folder when auto spring load is disabled. Apps
I disabled automatic spring-loaded folders. But wanted to have ability to manually activate it.

As you know if you drag one folder to another you can wait a little or immediately press spacebar. In both cases folder "spring-loads".

But auto spring-load annoys me more than helps. Because I often need to find folder I want to spring-load. And also I have to control that I am not hovering some other random folder. And sometimes I start dragging folder and in some depth forget to control not hovering any unnecessary folder.
"And boom!" and spring-loads wrong folder.

In Finder Settings (Finder menu -> Settings or CMD+,) you can disable auto opening spring-loaded folders.
But it will also disable manual opening folder via pressing spacebar.

But the hint is to double click spacebar when you hover necessary folder. "And boom!"
  Post a comment  •  Comments (10)  
  • Currently 2.00 / 5
  You rated: 1 / 5 (7 votes cast)
 
[4,931 views] Email Article To a Friend View Printable Version
Creating keyboard shortcuts on the command line Apps
Like most preferences, keyboard shortcuts can be set using "defaults write" commands in the Terminal. Useful if you have lots of shortcuts that you want to define, or if you have more than one Mac to set up.

However, the syntax isn't quite the same as the usual commands for setting a key to a value.

For Application-specific commands, use the following:

defaults write com.developer.app NSUserKeyEquivalents -dict-add "Menu Item" -string "@$~^k"

The meta-keys are set as @ for Command, $ for Shift, ~ for Alt and ^ for Ctrl. k in this example is the non-meta-key that you want to use.

For system-wide shortcuts, you can use -g instead of the app identifier, e.g.

defaults write -g NSUserKeyEquivalents -dict-add "Menu Item" -string "@$~^k" Note that you'll need to relaunch the app before these will take effect. Also you can see if they've been successful in System Preferences -- which will also need a relaunch to show the changes.

  Post a comment  •  Comments (2)  
  • Currently 3.73 / 5
  You rated: 2 / 5 (11 votes cast)
 
[7,487 views] Email Article To a Friend View Printable Version
Workaround GateKeeper for Non-Apps Apps
GateKeeper will block files from opening that it thinks are command line apps.

I was trying to open in TextWrangler sample .ncx and .opf files that I had downloaded from an Amazon forum. The Mac saw them as command line apps, and when dragging them onto TextWrangler's icon, I got an alert from GateKeeper. Since they're files, the contextual menu "Open" command didn't work. When I went into the Security preference pane to temporarily disable GateKeeper, I noticed that it had a message about the last thing that was prevented from opening, with a button to open anyway, and the file opened right away in TextWrangler. (Note that I didn't try changing the "open in" app using Get Info, which may have worked also.)
  Post a comment  •  Comments (2)  
  • Currently 2.83 / 5
  You rated: 4 / 5 (6 votes cast)
 
[4,207 views] Email Article To a Friend View Printable Version
Tweak the scrubbing speed in iOS 7's Music app Apps
When you're playing music in the Music app in iOS 7, there's a thin red playhead that you can drag to adjust the song's playback position. Tap and drag it around for what Apple calls "Hi-Speed Scrubbing." (Why it's not "high," I can't say. Maybe the programmers were hi.)

Here's the hint: You can adjust the speed at which you're scrubbing through the song, if you need finer-grained control: Tap and hold on the red line, and then drag your finger upwards.

As you drag up the screen, you'll note that there three other gradations of scrubbing speed: Half-Speed Scrubbing, Quarter-Speed Scrubbing, and finally Fine Scrubbing; that last mode lets you scrub through the song second by second.
  Post a comment  •  Comments (1)  
  • Currently 3.17 / 5
  You rated: 2 / 5 (6 votes cast)
 
[5,720 views] Email Article To a Friend View Printable Version
Notes app color modification in 10.9 Apps
Apple changed the looks of Notes.app in Mavericks and it is now mostly white with a light yellow paper texture as the note background. Turns out the texture is a TIFF file you can easily edit with any image editing app.

Quit Notes.app. Go to /Applications/Notes.app/Contents/Resources. Copy paper.tiff file to your desktop. Make another copy and save it as a backup to a safe place. Open Desktop/paper.tiff to Photoshop or some other image editing app. Use your creativity. After saving, drag the file back from desktop to /Applications/Notes.app/Contents/Resources.

I changed mine to a bit more saturated and removed the texture. Looks like a Post-It note.

  Post a comment  •  Comments (1)  
  • Currently 3.20 / 5
  You rated: 5 / 5 (5 votes cast)
 
[5,889 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)
 
[6,989 views] Email Article To a Friend View Printable Version