• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How can I control invisible files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I control invisible files


  • Subject: Re: How can I control invisible files
  • From: Doug McNutt <email@hidden>
  • Date: Fri, 02 Nov 2012 19:51:48 -0600

At 17:28 -0600 11/2/12, Robert Poland wrote:
>Hi,
>
>I just discovered that when scripting Finder windows (size, location, etc.), if they misbehave, deleting the .DS_Store file helps.
>
>Only problem is that, apparently, the invisibles must be visible to delete them.
>
>Question; Is there a way to detect and control the Hide/Show Invisibles.
>
>if controlKeyDown then -- delete file ".DS_Store
>	delete file ".DS_Store"
>end if

In the past - 10.3.9 or so - I made UNIX hard links to files and directories that Apple wanted to hide. It was mostly for /etc, /usr and the like. It takes Terminal or do shell script.  man ln will tell all. But deleting a link to a file might not remove the file reliably.

You might also think about deleting the contents of the .DS_Store file without deleting the file itself.

To do that you copy a special file /dev/null into the file to be obliterated. Again Terminal or do shell script

cp /dev/null  "complete path to .DS_Store"

You might need to invoke admin privilege for any of that with sudo.
--

-->  Halloween  == Oct 31 == Dec 25 == Christmas  <--
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: How can I control invisible files
      • From: Christopher Stone <email@hidden>
References: 
 >How can I control invisible files (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Mail navigation script
  • Next by Date: Re: How can I control invisible files
  • Previous by thread: How can I control invisible files
  • Next by thread: Re: How can I control invisible files
  • Index(es):
    • Date
    • Thread