Conditional code


/ Published in: AppleScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. tell application "Finder"
  2. if (folder "My Folder" of desktop exists) = false then
  3. make new folder at desktop with properties {name:"My Folder"}
  4. else
  5. tell me to display dialog "The floder already exists."
  6. end if
  7. end tell

Report this snippet


Comments


You need to login to view comments.