• 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: Visible on OSX 10.11.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:

Can someone confirm?

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.


-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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

References: 
 >Visible on OSX 10.11.1 (From: Christopher Stone <email@hidden>)

  • Prev by Date: Visible on OSX 10.11.1
  • Next by Date: Re: PDF Search
  • Previous by thread: Visible on OSX 10.11.1
  • Next by thread: Get URL From Under Cursor in OSX 10.11.x Safari
  • Index(es):
    • Date
    • Thread