Re: How do you know if the folder is Shared
Re: How do you know if the folder is Shared
- Subject: Re: How do you know if the folder is Shared
- From: Robert Poland <email@hidden>
- Date: Thu, 20 Dec 2012 11:48:21 -0700
On Dec 20, 2012, at 11:15 AM, Axel Luttgens <email@hidden> wrote:
> Le 20 déc. 2012 à 18:10, Robert Poland a écrit :
>
>> Hi,
>>
>> Talking about folders…
>>
>> Is there a way to know in a script that the "Shared Folder" line is included in the folder window?
>>
>> Apparently the Get Info "Shared Folder" checkbox is broken. It codes not indicate the status indicated by the window line.
>
> Hello Robert,
>
> A quick guess here; assuming P is set to the posix path of the folder you're interested in, perhaps could this one be of some help:
>
> set is_shared to length of (do shell script "/usr/bin/dscl . search /SharePoints dsAttrTypeNative:directory_path " & quoted form of P) is not 0
>
> Axel
Thanks Axel,
I can't seem to get past "Access not allowed.
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