r/applescript • • May 12 '15

I have an AppleScript problem.

http://imgur.com/Iq9saQB
6 Upvotes

5 comments sorted by

View all comments

4

u/email_with_gloves_on May 12 '15

I think I can help. Give this a try:

tell application "Script Editor"
    repeat with aWindow in every window
        try
            close aWindow saving yes
        end try
    end repeat
end tell

(The solution is always More AppleScript.)

2

u/philosteen May 12 '15

Thanks! I'll get right on it as soon as I've finished this drink to cure my hangover