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: Axel Luttgens <email@hidden>
- Date: Thu, 20 Dec 2012 19:15:41 +0100
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
_______________________________________________
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