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

A reason that iTunes polls for a password each launch Apps
If you were one of those (as I was) who followed the hint regarding session-only cookies in Safari, then you are possibly still being prompted for your password in iTunes, at least in Lion.

I discovered, after trying every hint I could find without success, that if the user permissions for ~/Library/Cookies/ is still set to read only for the user, then you will still be prompted for your password the first time you activate iTunes after a login.

The file, ~/Library/Cookies/Cookies.binarycookies is not being created/updated.

[crarko adds: I haven't tested this one. It seems clear if a user doesn't have write access to a directory in their own Library it could cause problems like this. If somebody who has used the previous hint mentioned and is still on 10.5 or 10.6 can comment on whether they are affected by this, it would be appreciated.]
  Post a comment  •  Comments (5)  
  • Currently 3.00 / 5
  You rated: 4 / 5 (4 votes cast)
 
[4,663 views] Email Article To a Friend View Printable Version
Forward Mail attachment only Apps
When an attachment's icon is highlighted in the message section of Mail, choosing Forward creates a message with the attachment as its only content.

When I needed to send someone just the file I got by mail, I used to remove the text body of an email message by hand and add some nice text. Recently, after having opened a file I went back to Mail's main window where the attachment was still selected. I hit Command+Shift+F and the new message contained only the Subject line, a short 'start of new message' text and the attachment.

[crarko adds: It's been generally true in Mail that selected text in a message is all that would be included in a reply/forwarding of that message. This special case of that rule is perhaps worth noting, given its usefulness and the fact that not everyone may be aware of it.]
  Post a comment  •  Comments (2)  
  • Currently 3.80 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (5 votes cast)
 
[3,883 views] Email Article To a Friend View Printable Version
Preview recent documents in Preview.app Apps
Just discovered this by accident. While in Preview.app when you when you slide three fingers down on your track pad you can get a preview of the top most recent documents opened in a Cover Flow-like menu along the bottom go the screen.

[crarko adds: This is another of those things I wasn't able to reproduce with the Magic Trackpad, so I don't now if this is the result of some setting or perhaps a third-party utility I don't have. Try and see if you can make this work, and please post your results in the comments if you do.]
  Post a comment  •  Comments (8)  
  • Currently 3.00 / 5
  You rated: 2 / 5 (6 votes cast)
 
[3,325 views] Email Article To a Friend View Printable Version
Using Get Info's Preview in the Finder to open the item Apps
Do you have a 'Get Info' window open in the Finder?

Click on the Previewed image, or actually, double-click it, and you'll open/run the item displayed. This also opens a folder.

[crarko adds: This has been around a long time, but some folks may not know the tip.]
  Post a comment  •  Comments (1)  
  • Currently 3.60 / 5
  You rated: 3 / 5 (10 votes cast)
 
[3,460 views] Email Article To a Friend View Printable Version
10.7: Safari-like navigation in the Finder Apps
One of the nice navigation features in many web-browsers is that a long click on the Forward and Backward buttons brings down a list of the next and previous sites in sequence so one could jump back two sites, for example.

It turns out that the Finder sports the same ability. A long click on the arrow buttons in the toolbar brings downs a menu with the previous and the next directories visited in that Finder window. This works in Mac OS X 10.7. I think I tried it with 10.6 as well as 10.4 before I upgraded to Lion and it did not work, but I am not sure.

[crarko adds: I did try it in 10.6 and it wasn't there.]
  Post a comment  •  Comments (4)  
  • Currently 3.43 / 5
  You rated: 2 / 5 (7 votes cast)
 
[4,325 views] Email Article To a Friend View Printable Version
Finding Control and Menu Items for use in AppleScript User Interface Scripting Apps
OS 10.7 Lion seems to have brought about a renewed interest in AppleScript User Interface Scripting. A big part of the difficulty in getting a GUI script to work is figuring out how exactly to address the controls in an applications window.

Apple's Accessibility Inspector.app, which comes with Xcode, is some help with this, but in my hands, it's always been awkward to use for figuring out what code I need to write to click a particular check box in say, a System Preferences Pane.

Here's a bit of AppleScript I wrote years ago that delivers up easy to understand and correct lists of an application's window and menu items in a format that may easily be cut and pasted directly into Scripts.
-- Entire Contents Demo - mini
-- BP ages ago or so

-- This'll get all the controls and structures associated with an App's window and menus
-- In a form which is easily pasteable into your own scripts
-- and show them in the result pane below.
--
-- Copy that into a text editor and change commas to returns to get an easily  readable list.
--
-- The script can take a long time if there are LOTS of window items, such as
-- in the "music" pane of iTunes. It may even time out if you have a huge iTunes library
-- The script'll process most App's UI structures in under a minute

set appname to "System Preferences" -------------------------- Set this to the App you want to look at

set winstuff to "defaultval"
set menustuff to "defaultval"

tell application appname
  activate
end tell

tell application "System Events"
  tell process appname
    set winstuff to entire contents of front window
    set menustuff to entire contents of menu bar 1
  end tell
end tell
--return winstuff & "rrrr" & menustuff -- comment this out to get just winstuff
return winstuff -- comment this out too to get just menustuff
--return menustuff 
Pointing the code at 'System Preferences' with the 'Desktop & Screens Saver' pane open will return, along with 128 other UI objects, this line describing the slider which controls the delay before the screen saver activates:
slider 1 of group 1 of tab group 1 of window "Desktop & Screen Saver" of application process "System Preferences" of application "System Events"
With the proper form of address in hand, it's a simple matter to construct an AppleScript that changes the delay before the screen saver is activated:
tell application "System Events"
  set value of slider 1 of group 1 of tab group 1 of window "Desktop & Screen Saver" of application process "System Preferences" to 180
end tell
The script will return information on whatever application window is frontmost, be it a document window, or an obscure dialog box.

I've looked for similar code online, and it doesn't seem to be commonly available.

[crarko adds: I tested some of this out; as mentioned, be prepared to do some massaging of the data that is returned (in AppleScript Editor's Results window) to make it readable.

Note: comments indicate this also works in versions before Lion.]
  Post a comment  •  Comments (15)  
  • Currently 4.10 / 5
  You rated: 2 / 5 (10 votes cast)
 
[11,482 views] Email Article To a Friend View Printable Version
Avoid After Effects slowdowns Apps
After Effects normally taxes your Mac's resources heavily, especially when you don't have a lot of memory. Using renice on the processes related to After Effects can greatly improve the performance of other applications you may be running.

By using renice on the processes related to After Effects and some others related to the system your system will be more responsive. Just launch this script after launching After Effects and render a few frames (RAM preview, render). The script will renice the priority of the After Effects processes, and some others that are related.

And then you may run iTunes, Dropbox, and other programs without problems while working with After Effects.
tell application "Finder" to set theApps to name of every process
activate
set newPriority to "15"
set theApp to "After Effects"
set thePID to do shell script "ps -axww | /usr/bin/grep '[/]" & theApp & "'| awk '{print $1}' | head -1"
Renice(newPriority, thePID, theApp)

set newPriority to "15"
set theApp to "CS5.5ServiceManager"
set thePID to do shell script "ps -axww | /usr/bin/grep '[/]" & theApp & "'| awk '{print $1}' | head -1"
Renice(newPriority, thePID, theApp)

set newPriority to "15"
set theApp to "Adobe QT32 Server"
set thePID to do shell script "ps -axww | /usr/bin/grep '[/]" & theApp & "'| awk '{print $1}' | head -1"
Renice(newPriority, thePID, theApp)

set newPriority to "15"
set theApp to "iTunes"
set thePID to do shell script "ps -axww | /usr/bin/grep '[/]" & theApp & "'| awk '{print $1}' | head -1"
Renice(newPriority, thePID, theApp)

set newPriority to "15"
set theApp to "Dropbox"
set thePID to do shell script "ps -axww | /usr/bin/grep '[/]" & theApp & "'| awk '{print $1}' | head -1"
Renice(newPriority, thePID, theApp)

set newPriority to "15"
set theApp to "aeselflink"
set thePID to do shell script "ps -axww | /usr/bin/grep '[/]" & theApp & "'| awk '{print $1}' | head -1"
Renice(newPriority, thePID, theApp)

set newPriority to "15"
set theApp to "kernek_task"
set thePID to do shell script "ps -axww | /usr/bin/grep '[/]" & theApp & "'| awk '{print $1}' | head -1"
Renice(newPriority, thePID, theApp)

on Renice(newPriority, thePID, theApp)
  try
    set theConfirmation to (do shell script "renice " & newPriority & " -p " & thePID)
  on error
    set theConfirmation to (do shell script "renice " & newPriority & " -p " & thePID with administrator privileges)
  end try
end Renice

[crarko adds: I haven't tested this one. The script lowers the priority of all the processes/applications included in it. The newPriority value of 15 is lower than the default value of 0. Given that renice is just a suggestion to the kernel about how to schedule the process the results can vary, depending on other factors in system. One obvious side effect here is that lowering the priority of After Effects can greatly increase the rendering time of a job. This may depend on the number of processor cores you have available. I guess my point is that doing this may or may not help with performance. It depends on what else your system is doing, and you might modify the script to accomodate that if you feel comfortable doing that.]
  Post a comment  •  Comments (5)  
  • Currently 3.67 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[6,084 views] Email Article To a Friend View Printable Version
10.7: Mail behavior in conversation mode Apps
This isn't really a hint, so much as an observation of surprisingly nice behavior by Mail in OS X 10.7.

I discovered this after I received an email from a colleague containing a long bulleted list of remarks and questions (dozens of them) about a project we're working on, only a few of which needed answers.

So I replied, inserting my points under his where needed and clicked send. To my surprise, in Mail, set to conversation view, the letter I sent appeared folded in several places, leaving only the questions I had answered visible.

[crarko adds: I don't have a good conversation to test this with at the moment, so please post your results and observations about this in the comments.]
  Post a comment  •  Comments (1)  
  • Currently 2.60 / 5
  You rated: 1 / 5 (5 votes cast)
 
[2,820 views] Email Article To a Friend View Printable Version
Like to use TextEdit? Hate not having Save as...? Apps
If you've found Apple's idea of eliminating 'Save as...' as disruptive of your workflow, then here's a simple solution:

Just copy TextEdit over from your Snow Leopard machine and rename it so you know the difference; I used 'TextEdit-SL.' Now drop it into your Dock and you'll have the traditional, proven, time-honored way to deal with files (instead of having to resort to TimeMachine to revert back to a version that decided to save changes you never intended to keep).

Unfortunately, Lion won't let you delete TextEdit directly. I haven't tried renaming it, replacing it with the SL version (with the proper name) and then trying to delete it.

[crarko adds: I copied (and renamed) TextEdit from my 10.6 drive and it works just fine. You'd need root privileges to try the renaming experiment; I didn't try it. I'd strongly suggest leaving the original alone, in case changing it would confuse Software Update. Also, if you want to have Auto-save and Versions support, continue to use the Lion version of TextEdit. Finally, if you do save a document from the 10.6 version, remember that when you double-click it that will launch the Lion version as the default.]
  Post a comment  •  Comments (19)  
  • Currently 3.33 / 5
  You rated: 2 / 5 (12 votes cast)
 
[17,422 views] Email Article To a Friend View Printable Version
10.7: Create a 'New To Do' Service Apps
Make it easier to create To Do items for iCal's Reminders list by creating a Service that can be invoked from the contextual menu or a keyboard shortcut.

Here's the procedure:
  • Launch Automator and create a new Service.
  • At the top of the workflow, set the following options, which are the default: Service receives selected text in any application.
  • Add New Action » Set Value of Variable. (To find this action, enter Set Value of Variable in the Automator search field.)
  • Click the Variable: pop up menu and select New variable...
  • Name the variable To Do Title (or whatever you like) and click Done.
  • Add New Action » New To Do Item. (To find this action, enter New To Do Item in the Automator search field.)
  • From the Variable section in the bottom right of the Automator window, drag the new variable To Do Title into the Title: field of the action.
  • In the New To Do Item action, click the Options button and select Ignore this action's input and Show this action when the workflow runs.
  • Save the new Service as New To Do and quit Automator.
  • Go to any application with some text content, select some of the text, right click, and select New To Do from the contextual menu. (You may have to go inside the Services sub-menu if you have a lot of Services that act on this data type.)
  • A New To Do Item dialog window will appear with the selected text in the title field. You can edit the title if you like. Select the desired options and click Continue.
  • Switch to iCal and you'll see your new To Do item in the Reminders list.
If you want to be able to invoke the command with a keyboard shortcut, go to System Preferences » Keyboard » Services » Text » New To Do and double-click in the invisible column to the right of the text. (Look for other keyboard shortcut listings if you can't figure out where to click. The list is divided into two invisible columns and if you don't double-click far enough to the right, nothing will happen.)

Advanced Notes: There are a few things that aren't immediately obvious about creating this Automator workflow that might be useful if you create others. It took me quite a bit of trial and error to figure these things out, so let me share them with you.

Most of you probably understand that creating this workflow as a Service allows it to show up in the contextual menu, the Services menu, and to be assigned a keyboard shortcut in the Keyboard System Preferences. Simply adding the New To Do Item action will create a new To Do item in iCal's Reminders list using the selected text as the title, but you won't be able to set any other options and you won't receive feedback that anything has happened. Selecting the option Show this action when the workflow runs presents the dialog box that allows you to set options for your new To Do item. When you create the Service, you can set what the default options should be and these defaults can always be changed by re-editing the workflow document in Automator.

The tricky part is figuring out how to make the title editable. With only the New To Do Item action, the title field in the resulting dialog is blank, but editing the field has no effect on the reminder that is created. This was very perplexing. By adding the Set Value of Variable action and placing that variable in the title field of the New To Do Item action, the selected text appears in the title field of the To Do item. However, editing the text in this field in the dialog box still has no affect.

The New To Do Item action is designed to always use the selected text as the title of the To Do item, no matter what you do in the dialog box. By selecting the Ignore this action's input option and using a variable to fill in the title filed using the selected text, you can then edit the title field as you are creating the new To Do item. This was the key to achieving the desired behavior.

I hope you find this Service useful, and I hope these technical tips help you create other useful Automator workflows.

[crarko adds: I tested most of this and it worked as described. It's a pretty straightforward Automator Service. The hint was a bit difficult to edit, so if any errors were introduced let me know in a comment and I'll correct them.]
  Post a comment  •  Comments (6)  
  • Currently 3.83 / 5
  You rated: 2 / 5 (6 votes cast)
 
[6,457 views] Email Article To a Friend View Printable Version