Skip to main content
Question

Inventory of .psd or.ai files on user hard drives

  • August 10, 2011
  • 4 replies
  • 5 views

Does Casper or ARD have the ability to get a inventory of specific files on a users hard drive? I need to find out how many photoshop .psd or illustrator .at files a user may have stored locally.

Thanks

![external image link](attachments/719abe1d44f1430ab31843d0759c2274)
Neal Smith | MAC Systems Engineer | Perrigo IT

4 replies

talkingmoose
Forum|alt.badge.img+36
  • Community Manager
  • August 10, 2011

Nothing is built in to either, as far as I know, that makes this a
On 8/10/11 1:05 PM, "Neal Smith" <Neal.Smith at perrigo.com> wrote:
one-click setup. You'd need to script something.

Are you interested specifically in .psd and .ai files or file size or
something else?

The command line utility "find" will probably get you what you're asking.
Something like:

find /Users/username -name *.psd

This assumes your users are not administrators and can only create files
within their own home folders. It returns something like:

/Users/username/Documents/Login window pictures/LoginWindowTemplate.psd

--

William Smith
Technical Analyst
Merrill Communications LLC
(651) 632-1492


  • August 10, 2011

Try using Spotlight via the mdfind command; it should be much faster than find. You can also use Spotlight query syntax to find any file with the Photoshop or Illustrator file type, even if the user has munged the filename extension.

mdfind -onlyin /Users/username 'kMDItemKind="Photoshop Document" || kMDItemKind="Adobe Illustrator document"'

-- Ben


  • August 10, 2011

I take that back - at least on my 10.7 system, the kMDItemKind attribute depends on the file extension, and is not accurate if the extension is changed.
On Aug 10, 2011, at 5:11 PM, Ben Gollmer wrote:

-- Ben


Forum|alt.badge.img+31
  • Honored Contributor
  • August 10, 2011

you may also look at mdfind if your user's hard drives have been indexed by spotlight.