Re: Programmatically adding to one big Finder selection ?
Re: Programmatically adding to one big Finder selection ?
- Subject: Re: Programmatically adding to one big Finder selection ?
- From: André Berg <email@hidden>
- Date: Thu, 02 Jul 2009 11:54:56 +0200
Thanks everyone for your input.
Interesting to see that I was wrong about selecting multiple files in
the finder being a common task.
Maybe a little background will shed some light on why I was trying to
write this program:
Currently I am primarily doing visual effects (digital compositing)
related work or sometimes I am working as web worker.
In both of these occupations we often deal with large repositories of
files with names that have no common basename or no common name extension.
In the past I had no problems of course doing all that file lifting,
moving, deleting, archiving, etc with the shell directly, but then I saw
Path Finder's selection feature, which also selects files nested in list
views, but doesn't allow one to enter regular expressions.
That's why I decided in order to boost my hobbyist programming knowledge
I'd try to code a little tool like that, which would allow me to select
arbitrarily files based on a regex (I know this question has been raised
before, a search on lists.apple.com shows there is some minor use for it
but not much and it never deals with list views).
When I got it working all fine I saw it as a challenge to also let it
work on expandable list views ofc not knowing that it would be indeed so
hard to accomplish. Now that I know I am thinking about ditching the
effort alltogether.
Again, I would like to thank everyone for taking their valuable time and
replying to my question :)
Cheers,
André
--- Original Nachricht ---
Absender: André Berg
Datum: 01.07.2009 6:54 Uhr
Hi,
I have an NSArray of NSString's representing valid POSIX paths.
How can I loop through that array and make one big selection of all
the items in one Finder window running in list-view mode?
I know about
[[NSWorkspace sharedWorkspace] selectFile:@"/some/path"
inFileViewerRootedAtPath:@""]
but it only let's me select one file at a time and it will spawn many
Finder windows during the loop, even if the frontmost Finder window is
in list view (aka NSOutlineView with expanded subfolders).
Thank you so much for reading my question!
Cheers,
André
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden