Hiding 'icon?' files visible in folders after Mac transfer

How do I hide the single 'icon?' file now visible inside every folder after mac transfer? Thx

MacBook Pro 15″, macOS 11.7

Posted on Jun 25, 2026 9:45 PM

Reply
Question marked as Top-ranking reply

Posted on Jun 25, 2026 9:57 PM

Press the Shift, Command, and period keys. If that doesn't work, choose Utilities from the Finder's Go menu, open the Script Editor, and run:


do shell script "chflags hidden " & quoted form of POSIX path of (choose file)


on each of them. The script won't have an effect if the Finder is set to display normally-hidden items.


(264217)

12 replies
Question marked as Top-ranking reply

Jun 25, 2026 9:57 PM in response to davey17x

Press the Shift, Command, and period keys. If that doesn't work, choose Utilities from the Finder's Go menu, open the Script Editor, and run:


do shell script "chflags hidden " & quoted form of POSIX path of (choose file)


on each of them. The script won't have an effect if the Finder is set to display normally-hidden items.


(264217)

Jun 29, 2026 3:38 PM in response to Niel

Thanks for trying to help Niel but I really don't understand any of your instructions well enough to execute.


I.e. Set theFiles to "(search for files named Icon in the Finder and drag them here)" (drag them where??)

repeat with thisFile in paragraphs of theFiles (repeat with which file? in what paragraphs? or search again with part of this sentence?)

do shell script "chflags hidden " & thisFile What is 'doing shell script' etc etc... 'end repeat' but end repeat what and where etc etc?

end repeat

Hiding 'icon?' files visible in folders after Mac transfer

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