This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/osascript | |
| on run argv | |
| set theFilePath to POSIX file (item 1 of argv) | |
| set theFolder to theFilePath as alias | |
| tell application "Finder" to set theDocs to theFolder's items | |
| -- Avoid export privilege problem | |
| set privilegeFile to (theFolder as text) & ".permission" |