• 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: Robert Poland <email@hidden>
  • Date: Tue, 06 Nov 2012 07:13:13 -0700

Chris,

"home"?

Does that delete from the frontmost finder window or???


On Nov 5, 2012, at 9:40 PM, Christopher Nebel <email@hidden> wrote:

> On Nov 2, 2012, at 4:28 PM, Robert Poland <email@hidden> wrote:
>
>> 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
>
> Finder will happily let you deal with invisible items, but only if you refer to them as "items":
>
> 	tell app "Finder" to delete item ".DS_Store" of home
>
> To get Finder to show you everything, including invisible files:
>
> 	defaults write com.apple.Finder AppleShowAllFiles -bool YES ; killall Finder
>
>
> --Chris Nebel
> AppleScript Engineering
>

Robert Poland - Fort Collins, CO




 _______________________________________________
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: Paul Berkowitz <email@hidden>
    • Re: How can I control invisible files
      • From: Robert Poland <email@hidden>
References: 
 >How can I control invisible files (From: Robert Poland <email@hidden>)
 >Re: How can I control invisible files (From: Christopher Nebel <email@hidden>)

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