Skip to main content

⚠️ Please note that this topic or post has been archived. The information contained here may no longer be accurate or up-to-date. ⚠️

Check if folder is loaded

Comments

2 comments

  • Walter Rowe
    Moderator
    Top Commenter

    Have you tried asking Finder to get the files?

    tell application "Finder"
    set theFiles to (get every item of folder theFolder where ((kind is not "Alias") and (kind is not "Folder")))
    set theCount to (count of theFiles)
    end tell

     

    0
  • Rick Allen

    Yeah I find interacting with finder can trigger security/privacy warning dialogs. I’ve since replaced the line using the library with pure AObjC. Seems to work, but I wonder if there is a better was to check if a folder or collection has loaded. Thanks for taking a look.

    0

Please sign in to leave a comment.