in Finder, how can I see the origin of a file? On the Mac of a colleague, we can see from which server a file is downloaded. How can I change this?

in Finder, how can I see the origin of a file? On the Mac of a colleague, we can see from which server a file is downloaded. Where can I find the settings for this?


Posted on Sep 24, 2020 5:43 AM

Reply
4 replies

Sep 24, 2020 7:38 AM in response to maarten148

You can use Spotlight to find files obtained from a specific network server. Let's say I downloaded a file (not a screen capture) from the Deviant Art website. The following Spotlight query will find all files whose server name has "deviant" in the name string:


kind:image kMDItemWhereFroms:deviant


That Where from content also appears in a Get Info/Show Inspect (⌥⌘i) panel too.


And from the Terminal, one can see the kMDItemWhereFroms extended attribute assigned to the file:

xattr ./imagename.jpg
com.apple.metadata:kMDItemDownloadedDate
com.apple.metadata:kMDItemWhereFroms


and remove that particular extended attribute via:

xattr -d com.apple.metadata:kMDItemWhereFroms ./imagename.jpg
xattr ./imagename.jpg
com.apple.metadata:kMDItemDownloadedDate



Sep 24, 2020 8:05 AM in response to VikingOSX

What I meant to post before the hosting software interfered:


You can use Spotlight to find files obtained from a specific remote server. Let's say I downloaded a file (not a screen capture) from the antmarch website. The following Spotlight query will find all files whose server name has "ant" in the name string:


kind:image kMDItemWhereFroms:ant


The Where from content also appears in a Get Info/Show Inspector (⌥⌘i) panel too.


Although one can remove the extended attribute from the file in the Terminal via xattr, the Finder Get Info panel continues to display the Where from server information. One must restart the Finder for the same file to no longer show the Where froms information after using xattr.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

in Finder, how can I see the origin of a file? On the Mac of a colleague, we can see from which server a file is downloaded. How can I change this?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.