|
|
|
|
|
|
Archive for the ‘Leopard’ Category
Friday, March 26th, 2010
LaunchBar is a great ‘mouse-free’ utility for instantly getting to files, folders, URLs, music, addresses, and just about anything else on your Mac. Hit command-spacebar and start typing the first few letters of whatever you want – LaunchBar lists the choices that match and you just hit the return key to open or go to that item. I use it all the time and recommend it to everyone I know.
There’s a really handy way of including your recent and favorite folders from Default Folder X in LaunchBar’s index. After doing this, you can instantly access those folders from the keyboard using LaunchBar.
To make Default Folder X favorites and recent folders available in LaunchBar do the following:
- In your Default Folder X preferences, click on the Advanced tab and turn on “Create aliases of Recent Folders and Favorites in your Library folder”.

- In LaunchBar, choose Show Index from the Index menu. Click on the “Folder+” button in the toolbar to add a folder.

- Select the HOME/Library/Favorites/ folder.
- Once the folder is added, click on the Options tab for that folder and set Search Scope to “Search 1 Subfolder Level” and Search for “Folders”.

- Click on the Schedule tab and turn on the “Update automatically” checkbox.

- Repeat steps 2-5 for the folder HOME/Library/Recent Folders/
- Once you tell LaunchBar to reindex, you’ll have access to all of your Default Folder X favorite and recent folders.
Thanks to Gary Schelling for asking about this and jogging my brain
Posted in Default Folder X, Leopard, Snow Leopard, Tips | 1 Comment »
Friday, November 6th, 2009
So, Apple added this cool little capability to the Launch Services API in Leopard: LSSharedFileListAddObserver will call your observer function whenever there are changes in a number of different file lists maintained by Launch Services. One of those lists is the “Recent Documents” list in the Apple Menu. ”Great!” I thought, “I’ll roll this into Default Folder X to ensure that it doesn’t miss any recently used folders.” It’s a simple API – what could go wrong? As a long time developer, I should have known better – if you EVER say this (even if you never even say it out loud), you need to poke yourself with something sharp and realize that the consequences will probably hurt quite a bit more than that. “What could go wrong?” indeed.
So yes, here I am apologizing for not having poked myself after I used LSSharedFileListAddObserver without asking more questions – or at least without testing more. Here’s how Default Folder X ended up using 60% of some users’ CPUs while doing nothing useful:
- DFX added itself as an observer for kLSSharedFileListRecentDocumentItems.
- The observer function got called by Launch Services because the user double-clicked a document in the Finder.
- DFX looked at the list, took the most recent entry in it (the first one), asked Launch Services for the URL of the document, and added the folder enclosing that document to its Recent Folders list.
Pretty simple, right? Yeah, I thought so too. This was tested thoroughly on Snow Leopard and performed fine, and all my Leopard testers reported that it worked well for them too.
So what’s the problem then? Well, there’s this little “issue”… If a user has a Windows server mounted on the Desktop, things get a little more interesting. Normally, when Launch Services calls your observer function, it hands you the file list and you ask for a copy of the list. The list itself is just a series of ID’s and references – to see what’s in an entry, you have to call LSSharedFileListItemResolve(). And that’s where the interesting part happened. On Leopard, if the shared file list item lies on a Windows server, the act of calling LSSharedFileListItemResolve actually results in the item being changed, so your observer function gets called again the next time you hit your event loop. The result of this is that you get called over and over again if you naively use LSSharedFileListItemResolve to get more info about the items that Launch Services is handing you.
So – the warning: If you use LSSharedFileListAddObserver to watch the list of recent documents, keep a copy of the ID’s from the previous call and ONLY call LSSharedFileListItemResolve if there’s a new ID in the array. Otherwise do nothing, or work off cached information – otherwise you’ll end up in an infinite loop, sucking down lots of CPU time. And if you’re doing anything that interacts with the filesystem, make SURE you test with SMB shared volumes too.
Posted in Code, Default Folder X, Development, Leopard | No Comments »
Thursday, November 5th, 2009
Posted in Default Folder X, Development, Leopard | 1 Comment »
Tuesday, June 30th, 2009
Here’s the 4.2.1b2 build of Default Folder X:
http://www.stclairsoft.com/download/DefaultFolderX-4.2.1b2.dmg
The new menu preview feature now has an on / off switch in the preferences window, and due to popular demand the small sized previews have increased to 192 x 192 (instead of 128 x 128). The zoom-when-you-pause feature now works reliably on all systems, and this build works correctly under Mac OS 10.4. Please download it and give it a spin!
Send any bug reports, impressions, and feature requests to defaultfolder@stclairsoft.com. Here’s the full 4.2.1 change history from the ReadMe:
- Default Folder X now gives you file previews in its menus. As you mouse through Default Folder X’s hierarchical menus from the menu bar, you’ll see a preview of the file that’s highlighted in the menu. Hover there for a couple of seconds and the preview will enlarge.
- In Open and Save As dialogs, Default Folder X now puts a “Computer” item at the top of the folder hierarchy in the path menu.
- New Spotlight tags were sometimes not written out to the shared OpenMeta recent tag list. This has been fixed.
- Spotlight tag completion now ignores differences in diacritical marks.
- Added support for Fluid site-specific browsers when they’re running as menu extras.
- Previews now correctly follow aliases so that a preview of the original file is shown when you select an alias in an Open dialog.
- When two folders with the same name are in a menu, the menu items for them will now include the name of the parent folders that uniquely identify those folders (Default Folder X used to just show their immediate parent folders, but sometimes those had the same names too).
- Fixed an AppleScript problem that would cause Preview to print a PDF file over and over again if you selected a the file in the Finder and chose Print from the File menu.
- Changed the rebound feature so that filenames with a ‘:’ character are recognized correctly in Cocoa applications.
- Corrected a problem that would result in Default Folder X not loading in multiple running applications that had the same creator signature (when running both Photoshop CS3 and CS4 at the same time, for instance).
- Default Folder X was saving empty Finder comments, resulting in Spotlight attaching empty com.apple.metadata:kMDItemFinderComment attributes to some files. This has been fixed.
- Fixed compatibility problems with python-based applications that use appscript.
- Added support for 64-bit PowerPC applications to the scripting addition.
- Corrected inconsistent rebound behavior on network server drives.
- Fixed the Extras/DFX script so it doesn’t show a busy cursor when it pops up the Default Folder X menu.
Thanks!
Posted in Default Folder X, Development, Leopard, openmeta | No Comments »
|
|
|
|
|