display alert "The selected item, “" & theProjectName & "” is not a project." message "The script only works with projects, not actions or folders.  Please select a project to use the script." as warning buttons {"OK"} default button 1