• 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: Christopher Stone <email@hidden>
  • Date: Sun, 04 Nov 2012 03:46:19 -0600

On Nov 02, 2012, at 20:51, Doug McNutt <email@hidden> wrote:
You might also think about deleting the contents of the .DS_Store file without deleting the file itself.
______________________________________________________________________

Hey Doug,

That's an interesting thought.  And the cp /dev/null trick is a new one on me and good to learn.

One can of course do this by the more traditional method.

--------------------------------------------------------------
tell application "Finder"
  set dsStoreFile to ((target of front window as text) & ".DS_Store")
end tell
try
  alias dsStoreFile
  set fRef to open for access dsStoreFile with write permission
  set eof of fRef to 0
  close access fRef
  set fileExists to true
on error e
  set fileExists to false
end try
--------------------------------------------------------------

But it's six-of-one...

--
Take Care,
Chris

 _______________________________________________
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

References: 
 >How can I control invisible files (From: Robert Poland <email@hidden>)
 >Re: How can I control invisible files (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re: How can I control invisible files
  • Next by Date: Requesting advice with getting Mail message rows.
  • Previous by thread: Re: How can I control invisible files
  • Next by thread: Re: How can I control invisible files
  • Index(es):
    • Date
    • Thread