• 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: How do you know if the folder is Shared
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: How do you know if the folder is Shared (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: How to modify Grid Spacing ?
  • Next by Date: Re: How do you know if the folder is Shared
  • Previous by thread: Re: How do you know if the folder is Shared
  • Next by thread: Re: How do you know if the folder is Shared
  • Index(es):
    • Date
    • Thread