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

Microsoft Word keyboard shortcut to close the sidebar Apps
Microsoft Word 2011 does not, as far as I can tell, offer a means of assigning a keyboard shortcut to close the sidebar. The AppleScript described here provides that functionality, and sets a keyboard shortcut that will trigger it.

Name the following Applescript "MicrosoftWordCloseSidebar\mosH.scpt" (notice the reversed slash) and save it in ~/Library/Application Support/Microsoft/Office/Word Script Menu Items:
do shell script "osascript -e '
tell application \"System Events\" to tell process \"Microsoft Word\"
 	set {frontmost, itemFound} to {true, false}
 	repeat with w in windows
 		tell w to repeat with g in groups
 			tell g to repeat with c in checkboxes
 				tell c to if value of its attribute \"AXHelp\" = \"Close the Sidebar\" then
 					set itemFound to true
 					click
 					exit repeat
 				end if
 			end repeat
 			if itemFound then exit repeat
 		end repeat
 		if itemFound then exit repeat
 	end repeat
end tell
' >/dev/null 2>&1 &"
When you press Command-Option-Shift-H, the close button of the sidebar is clicked, and the sidebar closes. The keyboard shortcut comes from the "mosH" part of the Applescript name (m=Command, o=Option, s=Shift, H=the letter H). That shortcut was chosen to complement the existing shortcut to open the Find/Replace Sidebar (Command-Shift-H) and may be altered to suit a particular user's needs. The script is constructed as a background osascript to get around a problem that occurs when trying to GUI-script Microsoft Word from its script menu.
  Post a comment  •  Comments (12)  
  • Currently 3.29 / 5
  You rated: 4 / 5 (7 votes cast)
 
[6,585 views] Email Article To a Friend View Printable Version
Turn off automatic attachment preview in Mail Apps
Mail, by default, provides a preview of attachments in can read, such as graphics and PDF files. However, you can run a command in Terminal to turn this off. Run the following:
defaults write com.apple.mail DisableInlineAttachmentViewing -bool yes
Quit Mail and relaunch it. When you view a message, all attachments will be shown as icons only. To restore the original functionality, run this command:
defaults write com.apple.mail DisableInlineAttachmentViewing -bool no
Found on StackExchange.
  Post a comment  •  Comments (0)  
  • Currently 3.55 / 5
  You rated: 4 / 5 (11 votes cast)
 
[18,718 views] Email Article To a Friend View Printable Version
How to Email Pictures from iPhoto Using Mail.app Instead of iPhoto's Built-in Email Feature Apps
iPhoto 11 added an awful new built-in email service that replaces the previous functionality: when sending an email, it used to open Mail and attach the photos to a new email. Now, it uses a poorly designed, built-in email functionality that ruins everything. To send photos again using Mail, run the following command in Terminal:

defaults write com.apple.iPhoto EmailApp Mail

To return this functionality to iPhoto, run the following command in Terminal:

defaults write com.apple.iPhoto EmailApp iPhoto

(Originally found here.)
  Post a comment  •  Comments (5)  
  • Currently 2.00 / 5
  You rated: 1 / 5 (13 votes cast)
 
[9,786 views] Email Article To a Friend View Printable Version
Print large Numbers tables on one page Apps
I find frustrating the way Numbers prints large tables they're often split both horizontally and vertically across multiple pages.

One way to print a large table on a single page is to copy the table and open it in Preview. In Numbers, click the dragging square at the top left of the table. (You need to scroll to the top of the table to see it.) Press Command-C, open Preview and press Command-N. Print away.

[kirkmc adds: Interesting: if you paste a table into Preview, it's displayed with no borders or extra space, as if it were a PDF. (There's a hint explaining this.) However, when you print, make sure to select Scale to Fit, then Fill Entire Paper. I tried pasting a long table - about 300 lines - and Preview, using the default print settings, would have printed the entire table on one page.]
  Post a comment  •  Comments (5)  
  • Currently 2.43 / 5
  You rated: 1 / 5 (7 votes cast)
 
[5,982 views] Email Article To a Friend View Printable Version
Remove Genius mixes from iTunes Apps
I spotted something today in iTunes 11, which I don't recall seeing before. If you right-click on a Genius Mix icon, you can choose Remove > Genius Mix name> and delete it from the Genius Mixes list. If you want to get all your Genius Mixes back, you can right-click anywhere in the white space of that window and choose Restore All Mixes to get them all back. But you still have no control over how Genius Mixes are created.
  Post a comment  •  Comments (0)  
  • Currently 2.89 / 5
  You rated: 2 / 5 (9 votes cast)
 
[4,701 views] Email Article To a Friend View Printable Version
Create playlists in iTunes for all complete albums Apps
User Aphex5 posted an interesting question on Stack Exchange, asking if there was a way to create playlists for all complete albums in his iTunes library. He then followed up with an answer, the following AppleScript:
-- Creates a playlist for each full album you have in iTunes
-- Set the playlistPrefix and playlistSuffix as desired before running

-- Based on code by Brad Campbell
-- http://www.bradcampbell.com/2009/05/26/make-a-whole-album-playlist-in-itunes/

tell application "iTunes"
    set playlistPrefix to "FA: "
    set playlistSuffix to ""
    -- The "FA: " prefix will help cluster full albums in iTunes' playlists,
    -- and is narrow enough to not get in your way when viewing on an iPhone

    set albumBuckets to {} as list
    set allSongs to (every track of library playlist 1 whose enabled is true and podcast is false and kind contains "audio") as list

    -- Find all partial albums in iTunes
    repeat with currentTrack in allSongs
        set albumName to album of currentTrack as text
        set artistName to artist of currentTrack as text

        -- First check for missing values, then perform integer comparison
        -- Zero is on the left to force interger type coercion, just in case
        if album of currentTrack is not missing value and 0 is less than length of albumName then
            if artist of currentTrack is not missing value and 0 is less than length of artistName then
                if track number of currentTrack is not missing value and 0 is less than track number of currentTrack then
                    if track count of currentTrack is not missing value and 0 is less than track count of currentTrack then
                        if albumBuckets does not contain album of currentTrack then
                            copy album of currentTrack to the end of albumBuckets
                        end if
                    end if
                end if
            end if
        end if

    end repeat

    repeat with currentAlbum in albumBuckets
        set albumSongs to (every track of library playlist 1 whose album is currentAlbum)
        set firstTrack to first item of albumSongs

        -- Filter album list to act only on full albums
        if (count of albumSongs) is equal to track count of first item of albumSongs and 1 is less than (count of albumSongs) then
            -- This is a full album, construct the playlist

            -- Sort tracks by track number
            set albumSongsSorted to {} as list
            repeat with i from 1 to (count of albumSongs)
                repeat with trk in albumSongs
                    if track number of trk is i then
                        set nextSong to trk
                        copy nextSong to the end of albumSongsSorted
                    end if
                end repeat
            end repeat

            -- Don't show artist name for compilations
            if firstTrack is not compilation then
                set playlistNameArtist to artist of firstTrack & " - "
            else
                set playlistNameArtist to ""
            end if

            set albumPlaylistName to playlistPrefix & playlistNameArtist & currentAlbum & playlistSuffix

            -- Create playlist
            if user playlist albumPlaylistName exists then
                try
                    delete tracks of user playlist albumPlaylistName
                end try
            else
                make new user playlist with properties {name:albumPlaylistName}
            end if

            try
                repeat with trk in albumSongsSorted
                    duplicate trk to user playlist albumPlaylistName
                end repeat
            end try
        end if
    end repeat

    display dialog "Playlists created! Check iTunes for playlists beginning with '" & playlistPrefix & "'"
end tell
This will traverse the iTunes library and make playlists for every album where the number of tracks matches the total number of tracks for the album; in other words, if you only have one or six songs from a ten-song album, it won't make a playlist. Naturally, this assumes that you have the correct metadata for your tracks to enable this. If you don't, you can go through your albums - one by one, alas - using Doug Adams' Albumize Selection AppleScript; this script sets both track number and track count tags to the appropriate numbers.
  Post a comment  •  Comments (5)  
  • Currently 3.13 / 5
  You rated: 3 / 5 (8 votes cast)
 
[5,479 views] Email Article To a Friend View Printable Version
Change subtitles quickly in DVD Player Apps
I'm affected by a mild form of phonemic deafness: the part of my brain in charge of translating sound into words doesn't work perfectly. Therefore, understanding spoken language is more difficult for me than for the average human, even in my mother tongue (Italian). Nevertheless, I've been always fascinated by languages, and I have learned to read in a few of them.

With the advent of the DVD, movies and TV series in their original language have become available and I'm using them as a mean to improve my comprehension. Usually, I try to understand the dialogues without using subtitles, but sometimes I need to look at them (if possible, in the language of the audio track) for a while. Apple's DVD Player allows me to do so, but you need to issue a series of commands using the controller or the menus to turn them on. However, it is possible to automate this process, causing the video to scrub backwards a little, activate the chosen subtitles and start the playback again.

As a first step, you must create a new service in Automator with a single action: "Run Applescript" (located in "Utilities"). Input the following script:
	
tell application "DVD Player"
	rewind dvd
	delay 1  -- approximate rewind time in seconds
	pause dvd
	set subtitle to 1 -- to choose first item of available subtitles
	play dvd
end tell
Select the options "Service receives no input" and "in any application". The number after "delay" controls the amount of back-scrubbing; you may try different values to fit your taste, and "set subtitle to 1" enables the first set of available subtitles.

Save the service with an appropriate name and open the Keyboard Shortcuts tab of System Preference's Keyboard pane. Select "Services" in the leftmost section and add a keyboard shortcut that suits you for the newly created service.

You may duplicate the process above, changing "set subtitle to 1" with "set subtitle to 2", etc. to create commands that select other sets of subtitles.

As a last step, create a service with the following AppleScript:
tell application "DVD Player"
 set subtitle to 0
end tell
This will allow you to switch subtitles off.
  Post a comment  •  Comments (0)  
  • Currently 3.14 / 5
  You rated: 1 / 5 (7 votes cast)
 
[4,165 views] Email Article To a Friend View Printable Version
Use Bluetooth keyboard with Apple TV Apps
You may have seen the news: the latest update to the Apple TV (2nd generation or later) allows you to use a Bluetooth keyboard. This makes searching for things much easier; the non-keyboard interface is slow and clunky. If you want to use a Bluetooth keyboard with your Apple TV, you can see this Apple technical document which explains how to set up a Bluetooth keyboard with an Apple TV, how to disconnect the keyboard, and how to troubleshoot common problems.
  Post a comment  •  Comments (6)  
  • Currently 2.78 / 5
  You rated: 4 / 5 (9 votes cast)
 
[9,894 views] Email Article To a Friend View Printable Version
Scrub through tracks in iTunes 11 with two-finger swipe Apps
I am not sure if it is new to iTunes 11 or not, but you can use a two-finger swipe on the trackpad while the mouse pointer is over the track progress bar in the iTunes LCD to scrub forward and backward. This is available in MplayerX for scrubbing in movies. It seems faster than pressing and holding the next button either on iTunes or on the keyboard. The same gesture also applies to the volume controller on iTunes.

Also, since mouse scrolling is passed to a window as long as the pointer is over it, even if another window in focus, you can use this reduce iTunes volume with no clicks at all. However, the iTunes mini player does not display either the seek bar or the volume controller so it can be used for either.

[kirkmc adds: We've run a hint about using the scroll wheel mouse for this, and another one about using a two-finger swipe in QuickTime Player. I don't recall if this was possible in iTunes 10. It's worth noting that the cursor has to be precisely over the progress bar or the volume slider for this to work.]
  Post a comment  •  Comments (2)  
  • Currently 3.00 / 5
  You rated: 5 / 5 (6 votes cast)
 
[3,848 views] Email Article To a Friend View Printable Version
Find the email a saved attachment was sent with Apps
If you save an attachment from an e-mail message, and later need to find exactly which message it came from but cannot remember which it was, it can be done with a little bit of work.

First, select the file in the Finder and open its Info window by pressing Command-I. In the More Info section, you should see the file's "Where from" information. This will list the sender's name and address and the subject line of the message that the file was originally attached to. You can first use this information to try searching in Mail for the message. Many times, that's all you'll need to do.

However, if that doesn't cut it for you - for example, you have multiple revisions of a file that were sent back and forth in a series of messages, and you need to determine which came from which - there is one more bit of metadata in the "Where from" information that can solve that for you.

Copy the part of the "Where from" information that looks something like this:
message:%3CCD253A37.36E7E%25sender@example.com%3E
Switch to Safari and paste that into the address field. Mail will activate and show you the message (assuming it still exists).

[kirkmc adds: Nice hint, but it doesn't always work for me. The Where from information is often truncated, and I can't copy the entire path as shown above. However, there's another way to do this: in Terminal, type mdls, press the spacebar, then drag the file to the Terminal window and press Return. This displays all the Spotlight metadata for the file. You'll find the Where from section near the bottom, and you can copy it in its entirety there, then paste it into Safari.

And I'm thinking that someone should be able to create an AppleScript that parses this information with a bit of grep, then sends it to Safari, hence making it possible to create a droplet which will do the trick. Anyone?]
  Post a comment  •  Comments (3)  
  • Currently 2.50 / 5
  You rated: 1 / 5 (8 votes cast)
 
[4,861 views] Email Article To a Friend View Printable Version