Feb 11, '13 07:30:00AM • Contributed by: kirkmc
Create playlists in iTunes for all complete albums
Feb 11, '13 07:30:00AM • Contributed by: kirkmc
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: 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.
Have Spotlight results show Dictionary words just below Top Hit (or anywhere you want)
Feb 08, '13 07:30:00AM • Contributed by: kirkmc
If you use Spotlight to look up Dictionary definitions, you may find it annoying that they show up near the bottom of the list. While you can change the order of most Spotlight categories from the Search Results tab of the Spotlight pane in System Preferences, Dictionary isn't in that list.
However, there is a hack, involving some simple editing of the ~/Library/Preferences/com.apple.spotlight.plist file. A recent post on Stack Exchange explains what to do. You open the file with Xcode, then add a Dictionary item, which will allow you to move the Dictionary category to where you want in the Spotlight results. See the post linked above for full details, or see this blog post in Chinese explaining the procedure.
Create default printer presets for multiple users
Feb 07, '13 07:30:00AM • Contributed by: Anonymous
I was tasked with setting up a company's new printers and had to struggle with creating a default set presets that also used a PIN number login for accounting. This needed to be pushed out to the current user base, in real time, and without interrupting anyone's ability to print. Here's how I did it.
1. Create the default settings:
In Terminal, run this command: sudo cupsctl WebInterface=yes
2. Install the drivers (.pkg files via ARD)
3. Add the printer using lpadmin:
lpadmin -p SweetNewPrinter-7535-clr -L "Department" -E -v lpd://WindowsServer/SweetNewPrinter-7535-clr -P /Library/Printers/PPDs/Contents/Resources/Xerox\ WC\ 7535.gz -o printer-is-shared=false
4. Copy the default cups PPDs via ARD (set permissions to: root:_lp):
It took about an hour to set this up for 200 end users, with no scripting required.
A new feature in the latest update to OS X Server is a caching server. This is designed to cache files in setups with multiple users so files only need to be downloaded once from the internet (or from the Mac App Store, iTunes Store, etc.). Files are cached locally, so users can save time getting downloads.
Apple has published a technical note explaining how to configure the caching server. You can set a limit to the amount of disk space used for the cache, you can choose a location for the cache, set the number of concurrent clients accessing it and much more.
This looks like a valuable feature for any organization running OS X Server.
Recover from File : /// crash loop in OS X Messages
Feb 05, '13 07:30:00AM • Contributed by: Andrew J Freyer
This recently published "File : / / /" bug (see this Macworld article for an explanation) is a huge problem and can be seriously exploited to crash Mac apps, especially Messages. If someone sends you an iMessage (from an iOS device to Messages for Mac), Messages will continually crash, rendering it completely useless.
This is a Warning - please DO NOT SEND a message with that content over iMessage. I do not suggest you test this bug. However, despite these warnings, trolling people will still send it to crash their friend's message machines.
Below are three fixes to make iMessage workable again: FIRST (and easiest): Send 30-40 (lines of) iMessages back to the sender. The idea here is to lengthen the iMessage log so that the File : / / / message is not loaded when Messages starts up. You can either send these from an iOS device or from a Share button, such as the one in Safari. Continue trying until you can open iMessage again. Then, delete the conversation with Command+Delete.
SECOND: Remove the "chat.db" message database from ~/Library/Messages. This will remove all Messages conversations.
THIRD: Edit "chat.db" to delete the offending message. You will need to do this with an sqlite editor not subject to the crash (most that I tried do not crash). The message will be found in the "messages" table.
[kirkmc adds: This is, indeed, a serious bug, and it's quite simple to send a denial of service attack to someone using Messages. As the poster said, do not try this juts for fun. You may want to try it in other apps just to see that the crash does, indeed, occur, but at your risk and peril. It's really quite surprising that a bug of this nature got through Apple's QA...]
If you want to send an email via the Gmail iOS app containing the URL and title of a web page, you can't simply use the Share button. But you can use a bookmarklet, as posted by Federico Viticci on MacStories. Save the following bookmarklet in your browser: Select it from your browser, and it will open the Gmail app, and create a new email with the title of the web page as the subject, and the URL in the body of the message. Note that this may not work if the Gmail app is not paused in the background.
Change subtitles quickly in DVD Player
Feb 01, '13 07:30:00AM • Contributed by: Anonymous
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 tellSelect 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 tellThis will allow you to switch subtitles off.
Post a comment • Comments (0)
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.
Safari displays emoji perfectly: on web pages, in tabs, and in the titlebar (if emoji are used in a page title). This makes it unique amongst the main OS X browsers: Firefox displays them in the title bar but not in tabs or on the page, while Chrome displays them in tabs but not on the page. There's a screenshot on my blog where I discuss this in more detail (the blog posting is an example that can be used to test browsers).
I played around a little with encoding settings in Firefox and Chrome but couldn't fix it. Maybe others will have more luck.
One issue I'm not clear about is what's required on the web backend to display emoji. UTF-16 encoding? Does anyone know?[kirkmc adds: It even works here, with Geeklog. 😄]
Scrub through tracks in iTunes 11 with two-finger swipe
Jan 29, '13 07:30:00AM • Contributed by: Rishifter
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.]
From our Sponsor...
Latest Mountain Lion Hints
HintsNo new hints
Comments last 2 days
Links last 2 weeksNo recent new links
What's New in the Forums?
Hints by Topic
News from Macworld
From Our Sponsors
All trademarks and copyrights on this page are owned by their respective owners.
Visit other IDG sites:
Created this page in 1.13 seconds