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: "L. Lee" <email@hidden>
- Date: Thu, 20 Dec 2012 14:19:25 -0600
- Thread-topic: How do you know if the folder is Shared
Try throwing your shared folder at this one, Robert. See, it's that final ":"("slash")"/" that often breaks the deal. ------ set my_chosen_folder to (choose folder with prompt "Choose a folder to check its sharing status…")
set P to quoted form of (characters 1 thru -2 of (POSIX path of my_chosen_folder) as string)
if length of (do shell script "/usr/bin/dscl . search /SharePoints dsAttrTypeNative:directory_path" & space & P) is not 0 then
display dialog "The folder \"" & (name of (info for my_chosen_folder)) & "\"" & space & "is shared." buttons {"OK"} default button 1
else
display dialog "The folder \"" & (name of (info for my_chosen_folder)) & "\"" & space & "is not shared." buttons {"OK"} default button 1
|
_______________________________________________
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