title: How to run script upon opening folder?
body: <p>I want to run an applescript when a specific folder of mine is opened. Then, depending on the input, close the folder, or leave it open. All that without opening the folder. So, basically:</p>
  
  <p>1) Try to open folder</p>
  
  <p>2) Folder doesn't open, but window pops up</p>
  
  <p>3-A) If user clicks ok folder opens</p>
  
  <p>3-B) If user clicks cancel, it just exits out of script, leaving the folder unopened.</p>
  
  <p>How can I do this? Remember: The folder CAN'T open in the background, it can ONLY open if the user presses OK. Help?</p>