• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to tell if "Save" failed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to tell if "Save" failed


  • Subject: Re: How to tell if "Save" failed
  • From: kai <email@hidden>
  • Date: Sat, 10 Sep 2005 19:46:24 +0100


On 10 Sep 2005, at 04:20, email@hidden wrote:

This must be obvious, but how can I tell if a "Save" failed?

[snip]

    try
        save self contained movie 1 in file (replacementPath)
    on error
        display dialog ("Error2")
    end try

You might consider using the file's creation or modification date:

    ------------

set saveDate to current date
try
save self contained movie 1 in file (replacementPath)
if modification date of (info for replacementPath) < saveDate then error
on error
display dialog ("Error2")
end try


    ------------

---
kai


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: How to tell if "Save" failed
      • From: kai <email@hidden>
References: 
 >How to tell if "Save" failed (From: email@hidden)

  • Prev by Date: No scripts available for Folder Actions
  • Next by Date: Re: No scripts available for Folder Actions
  • Previous by thread: How to tell if "Save" failed
  • Next by thread: Re: How to tell if "Save" failed
  • Index(es):
    • Date
    • Thread