Re: How can I control invisible files
Re: How can I control invisible files
- Subject: Re: How can I control invisible files
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 06 Nov 2012 08:48:50 -0800
- Thread-topic: How can I control invisible files
It's just an example that Chris was using. It doesn't have to do with
windows, it's the particular location/folder he's using as an example. You
don't have to have its window open.
'home' is the home directory (the one named as your user name). It's a
property of the application (the Finder), in the dictionary.
You can specify any folder you want in your script.
--
Paul Berkowitz
> From: Robert Poland <email@hidden>
> Date: Tue, 06 Nov 2012 07:13:13 -0700
> To: Christopher Nebel <email@hidden>
> Cc: AppleScript-Users <email@hidden>
> Subject: Re: How can I control invisible files
>
> 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:
>
m
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
_______________________________________________
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