Re: How can I control invisible files
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