finder

NMBLookup OS X returning inconsistant results

Hi all, We're trying to get SMB volume listings in our OS X application, and have been using NMBLookup, as suggested by Apple, to get listings. However, more often than not, we're not able to get a full listing of available SMB volumes using the tool. We've got a good benchmark in that we can see the full listing the Apple Finder gets, ...

How does the DropBox Mac client work?

I've been looking at the DropBox Mac client and I'm currently researching implementing a similar interface for a different service. How exactly do they interface with finder like this? I highly doubt these objects represented in the folder are actual documents downloaded on every load? They must dynamically download as they are needed...

What's the cleanest way to override ActiveRecord's find for both models and collections?

I have library code that overrides Ar's find method. I also include the module for all Association classes so both MyModel.find and @parent.my_models.find work and apply the correct scope. I based my code off of will_paginate's: a = ActiveRecord::Associations returning([ a::AssociationCollection ]) { |classes| # detect http://dev.rub...

How do I open a Finder sidebar folder via AppleScript?

I have a bash script which will be run on a Mac via ssh. The script requires a particular network drive to already be mounted. On the Mac, I mount this drive by opening a folder "JPLemme" on that drive in Finder. This mounts the drive until the Mac goes to sleep at night. Obviously, Finder isn't available via ssh, so I want to create an...

AppleScript: adding mounted folder to Finder Sidebar?

I have a simple Apple Script that mounts a folder: mount volume smb://machineip/folder This runs on start up since Mac OS X 10.5.5 doesn't have the concept of mapped drives like Windows. The script doesn't go as far as I'd like though. I get the machine IP added to Finder Sidebar and when I click it, all of the shared folders for th...

Open terminal here in Mac OS finder

Is there something similar to the "Open Command Window Here" Windows Powertoy for Mac OS? I've found a couple plugins through a google search but wanted to see what works best for developers out there. ...

How to launch the default (native) application for a given file from Java?

I am displaying a list of files; i.e. xls, doc, pdf, odt etc., in my Java application (Eclipse RCP). When the user clicks on the file, I want to launch the appropriate (according to what the OS thinks) native application, just like it happens in Windows Explorer or the Finder. And while I am here: It would be nice to also display the s...

how can i add a right click menu to finder

how can i add a custom view to the right click menu of every file in os x finder? e.g. i want to display the image if it is an image type and do some custom action etc. is this possible with c or objective-c? if yes how? (without using any available tool) ...

Getting the POSIX path of the Finder's front window

Hi, How can I get the POSIX path of the Finder window that is currently at the top of its window list? Preferably with some kind of Cocoa framework but I am open for anything. Background: I would need this because I want to make a selection of files matching a regex pattern, starting recursively from this path. The idea is to use [[...

How do you programmatically put folder icons on the Finder sidebar, given that you have to use a custom icon for the folder?

Am currently working on a project, and though I can add sidebar items by adding to the com.apple.sidebarlists.plist file then restarting Finder, I can't seem to know how to make the folder icons show up using its assigned custom icon. Can anyone point me to a link or a solution that would make me do this? Thanks a bunch in advance! ...

Applescript in Finder: advance to next file

What I'm trying to do is: set x to current selection, then advance the selection to the next file and then delete x. I'm doing this because CMD-backspace clears the selection every time and that's annoying! ...

(Rails) How do I mimic Finder/Explorer views with contextual menus, etc?

Hi All, I'm looking for some quality techniques for mimicking a Finder (or "Explorer View"). Eventually I want to have treeviews, contextual menus, etc. I'm guessing there is going to be a good deal of Javascript, which is fine, I'm just curious as to whether there are quality existing helpers, etc for any of these things. The curren...

Adding badges to file icons in Finder

I'm working on a small project at home that would add a badge (aka icon overlay) to a specific file based on its state. Anyway, I've Googled the hell out of it and the only documentation I was able to find was on Apple's developers site (Obtaining and Using Icons With Icon Services). The documentation expects the developer to be familia...

Which function does Leopard's Finder get the preview icons with the watermark on them?

I already took a look at GetIconRefFromFileInfo() and QLThumbnailImageCreate() but they just doesn't seem to be similar with what I see from the finder, which is a square icon with watermarks on it, e.g. if the file is RTF, it has this greyish watermark below that says RTF or RTFD or PDF... Please help me out on this. Thanks. If the que...

How to Write OS X Finder plugin

I'm looking for a guide or sample code for writing Mac OS X Finder plugins? It would like to know how to do some simple actions: adding image overlayers to icons adding context menu items listen to file changes I found the following two resources: Writing Contextual Menu Plugins for OS X: An outdated document from 2002 that uses t...

Changing the version in the info.plist file so that correct version will show up in mac finder

I am doing maintenance on app that other people created and I want to change the version in the Info.plist file so that when someone selects the app in the finder the correct version will show up. When I manually edit the info.plist file and change the bundle version string from 1.0 to 3.0 it still display 1.0 in the finder. Also, whe...

Navigating and Determine full path in FInder save-as dialog Mac OS X

How do you navigate the directory structure in a save as dialog on Mac OS X (Finder). Can Apple really have botched the simple funcitonality? ...

Has anyone successfully used mach_inject for Finder in Snow Leopard?

Just wondering if anyone has done this successfully and what were the steps of making it work. Thanks in advance. ...

Is it possible to emulate Mac Osx Finder search highlight in HTML + CSS?

Mac OSX Finder has a search feature that darkens everything but the part that matches. Is there a way to emulate it via CSS? I was thinking about adding a semi-transparent black div with opacity 50. But how then do I cut a hole in it?? and possibly make the edge fuzzy? Any suggestions? ...

prohibitory sign on application icon (broken folder) on Snow Leopard

I have prepared a disk image with my application,which i want to install in Applications folder. When i copy the application from the disk image to the applications folder, i see that first it gets generic application icon (sometimes my application icon with a prohibitory sign (or broken folder) ). It becomes executable application after...