Re: Toggle invisible files
Re: Toggle invisible files
- Subject: Re: Toggle invisible files
- From: Phil Stokes <email@hidden>
- Date: Thu, 10 Nov 2016 12:31:02 +0700
On 10 Nov 2016, at 11:13, Shane Stanley < email@hidden> wrote:
It'll do the wrong thing the first time
Hmm, I think I’d rather swallow the verbosity pill.
set _show to "defaults write com.apple.finder AppleShowAllFiles 1; killall Finder" set _hide to "defaults write com.apple.finder AppleShowAllFiles 0; killall Finder" set _readCurrent to "defaults read com.apple.finder AppleShowAllFiles" set _vals to {"1", "true", "yes"} set _state to do shell script _readCurrent
if _vals contains _state then do shell script _hide else do shell script _show end if
Best
Phil
|
_______________________________________________
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