Questions tagged [finder]

The Finder is the default file manager used on Mac OS and Mac OS X operating systems.

Overview

Finder allows you to visually access practically everything on your Mac, including applications, hard disks, files, folders, and CDs. You can use the Finder to organize all your files and folders as you want, search for stuff anywhere on your Mac, delete things you don't want, and more.

See also

782 questions
14
votes
3 answers

Set position of window with AppleScript

I'm trying to set the position of the Messages.app chat window using AppleScript. tell application "System Events" set position of window 1 of application "Messages" to {100, 100} end tell With this code I get an error: error "Messages got an…
DrummerB
  • 39,814
  • 12
  • 105
  • 142
14
votes
2 answers

Mac OS X 'compress' option vs command line zip (why do they produce different results?)

I noticed that the command line 'zip' tool and Mac OS X's 'Compress XXX' option (available via right click in finder) are giving different output files. Not only is the size of the file a few hundred bytes bigger but the content is significantly…
Locksleyu
  • 5,192
  • 8
  • 52
  • 77
13
votes
3 answers

Adding a script to MacOS finder contextual menu

I want to add an option to the finder context menu that calls hg add %1 with %1 being the full path of the selected file in finder. Of course there are more useful cases I can think of, to add to the context menu. Is there a simple way to do that…
Petruza
  • 11,744
  • 25
  • 84
  • 136
12
votes
5 answers

getting and setting mac file and folder finder labels from Python

I have been trying to find out how to get and set the colour of file labels from python. The closest thing I've found to a solution was this, but I can't seem to find the module macfile anywhere. Am I just not looking hard enough? Is there a…
GP89
  • 6,600
  • 4
  • 36
  • 64
11
votes
9 answers

Applescript: Get filenames in folder without extension

I can get the names of all files in a folder by doing this: tell application "Finder" set myFiles to name of every file of somePath end tell How can I change the strings in myFiles so that they do not include the file extension? I could for…
Svish
  • 152,914
  • 173
  • 462
  • 620
11
votes
6 answers

Tagging files with colors in OS X Finder from shell scripts

One can tag files and folders with a color in the Mac OS X Finder. Is there a way to do this from a shell script?
Ralf Ebert
  • 3,556
  • 3
  • 29
  • 43
11
votes
1 answer

NSTableView and drag and drop from Finder

I'm trying to implement drag and drop from the Finder into an NSTableView of my app. The setup uses an NSTableView, an array controller which acts as a datasource using Cocoa bindings to a Core Data store. I did the following, basically following…
Roger
  • 4,737
  • 4
  • 43
  • 68
10
votes
1 answer

Unable to add item in Finder's contextual menu using services in Cocoa

I would like to add an item in my Finder's contextual menu whenever I right-click on files or folders, and this menu being linked to a method of my Cocoa app. I am following CocoaDev's example and Apple's documentation, but I can't get the service…
Laurent Crivello
  • 3,809
  • 6
  • 45
  • 89
10
votes
0 answers

Is there a way to prevent Finder window from popping up when executing a Mac app action extension?

I recently added a few action extensions to my Mac app. They work fine and I display their UI and progress in a dedicated window. For some reason though, Finder also open a window where it displays the process name and an undefined progress bar and…
OwlOCR
  • 1,127
  • 11
  • 22
10
votes
2 answers

DAO pattern and the Open-Closed Principle

I've seen and worked with a lot of older, JDBC-based DAO code that usually start out with CRUD methods. My question relates specifically to the retrieval methods, or 'finders'. Typically what I find is that the DAOs start out with two…
user620884
10
votes
4 answers

How to run an Android Studio project directly from the Finder?

How to open an Android Studio project from the Finder? I see the below list of files. Is it possible to double-click one of them to get it opened by Android Studio?
brainray
  • 12,512
  • 11
  • 67
  • 116
10
votes
4 answers

Change all file icons with same type [Yosemite]

I have many excel files in my computer, and the icon of all of them are plain paper, like this: I want all icons to be .numbers icon. Do anyone know how to do that ?
Mohammed
  • 1,432
  • 4
  • 18
  • 34
10
votes
6 answers

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…
Brian Gianforcaro
  • 26,564
  • 11
  • 58
  • 77
10
votes
3 answers

How can I implement gesture recognizers in OS X?

I have done quite a bit with gesture recognizers for iOS, but I am now doing work in OS X, and I am lost. I want to duplicate the functionality that exists like in Finder where you can two-finger swipe (on your magic mouse) to go back/forward…
Westley
  • 1,143
  • 14
  • 27
10
votes
4 answers

Xcode 4.3.2 show hidden files

I am using Xcode 4.3.2 and I am trying to add some SDK references to my project. I can SEE the files using Finder, as I used the terminal script to view hidden files. Yet, when I go to my user home directory in Xcode finder, it does not show the…
Darren Mackiewicz
  • 101
  • 1
  • 1
  • 4
1
2
3
52 53