Skip to main content
tssee
Inspiring
October 9, 2016
Question

file .DS_Store

  • October 9, 2016
  • 1 reply
  • 2518 views

I have a problem I can not fix on my mac

I have a script that takes the files from a folder and load them into Photoshop

but if the folder and present the hidden file .DS_Store

It created an error message

If you copy the files and put them into another folder where it is not present .DS_Store

everything works correctly

the problem and that the .DS_Store appears immediately after loading the files

how can I avoid this problem?

This topic has been closed for replies.

1 reply

Legend
October 9, 2016

The .DS_Store file is a OSX system file, and contains desktop information for the according folder.

If you want/need to ignore this file, you might either test whether it is visible (convention says that when a file name begins with a period, the file is invisible), or you would use some other mechanism to create the list of files you want to copy. You might also look for file extensions and select accordingly.

If you can use Applescript, things get quite easy, because there you can create a list of files from a folder without invisibles.

tssee
tsseeAuthor
Inspiring
October 9, 2016

I tried deleting the .DS_Store

but then reappears

as you can do to not let this happen

Legend
October 9, 2016

You can delete these files as many times as you want. The finder will always recreate them.

It may be possible to prevent them from appearing if you do not open the according folder in the Finder, and access its files only via the Shell.