Jump to content
Welcome to InsanelyMac Forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


  • Content count

  • Joined

  • Last visited

About Rafol

  • Rank
    InsanelyMac Protégé
  1. Hi guys, i have this script: now my question is how can i replace the "choose folder" into fixed folder for example a folder that on my desktop? Thanks, Rafi tell application "Finder" set chosen_folder to choose folder set folder_name to name of chosen_folder count every file in folder chosen_folder set file_total to result count every folder in folder chosen_folder set folder_total to result set the_total to (file_total + folder_total) if the_total = 88 then else display dialog "There are " & file_total & " files and " & folder_total & " folders in the folder." & return & ¬ "Total items equals " & the_total & " but expected to be 88 files - error on test" end if end tell