Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8662085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:39:01+00:00 2026-06-12T16:39:01+00:00

How does one capture a Don’t Save or Save response to the Standard Suite

  • 0

How does one capture a “Don’t Save” or “Save” response to the Standard Suite “close” dialog?

    try
        close front document saving ask
    on error
        return
    end try

returns “error number -10000” if the user selects “Cancel”, so that case is handled.

However, subsequent code depends on whether “Don’t Save” or “Save” was selected.

Thanks


UPDATE

Using regulus’s answer and it’s workaround strategy, I prefaced the code above with

tell application "Finder" to set _modDateAfterSaveDialog to 
modification date of (info for file _filename)

where the _filename was assigned earlier from application-specific AS code.

Analogous code and a test followed the “try”.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T16:39:02+00:00Added an answer on June 12, 2026 at 4:39 pm

    I really have no idea how to get it directly. I assume the command you are issuing is a specific application command, not a standard suite command because standard applescript doesn’t have a “front document”.

    In any case, here’s a work-around idea that might work. When a file is saved its modification date changes. So you need to know the file of the front document. Then you just check the modification date of the file before and after you issue this command. If it changed then you know the file was saved.

    Good luck.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How does one capture the standard output/error of a process started by a Process.Start()
Does anyone know if there is a tool or app that lets one capture
I have a string from which I need to capture one and possibly two
One of the big deals in Silverlight v4 is audio/video capture... but I haven't
I have a thread that does several things. One of them is to just
I just don't get it: when I use the camera with an intent and
I was just introduced to the concept of Outlook forms. I don't know if
Using the AVCam sample, I don't see how I can get access tot he
I'm trying to capture input number through input UART event handler and print it
I have a simple form with one input. The page is located here: Actual

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.