Re: Visible on OSX 10.11.1
Re: Visible on OSX 10.11.1
- Subject: Re: Visible on OSX 10.11.1
- From: Shane Stanley <email@hidden>
- Date: Wed, 28 Oct 2015 22:40:52 +1100
On 28 Oct 2015, at 9:33 PM, Christopher Stone <email@hidden> wrote:
Doesn't do anything here (10.11.1).
use framework "Foundation"
set anNSString to current application's NSString's stringWithString:"~/Library" set anNSURL to current application's |NSURL|'s fileURLWithPath:(anNSString's stringByExpandingTildeInPath()) set theKey to current application's NSURLIsHiddenKey set {theResult, oldValue} to anNSURL's getResourceValue:(reference) forKey:theKey |error|:(missing value) anNSURL's setResourceValue:(not oldValue as boolean) forKey:theKey |error|:(missing value)
About 5x to 10x faster, and works.
|
_______________________________________________
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