Re: How to tell if "Save" failed
Re: How to tell if "Save" failed
- Subject: Re: How to tell if "Save" failed
- From: Matt Deatherage <email@hidden>
- Date: Sun, 11 Sep 2005 12:43:01 -0500
On 9/11/05 at 12:05 PM, Matt Neuburg <email@hidden> wrote:
> Offhand, I would describe this as a bug in the implementation of the
> Save command. Different apps seem to respond differently.
I agree that it's a bug. In fact, a search shows this came up on this list barely a month ago:
<http://lists.apple.com/archives/applescript-users/2005/Jul/msg00736.html>
"export movie 1 to replacementPath with replacing" works *if* you can write the file - that is, if the path up to the filename exists, if you have permissions to write to that directory, and so on. If not, then like "save self contained", you get no file and no error thrown in AppleScript.
QuickTime 7, in general, does not seem to return errors from its file-writing verbs if it can't write a file. I'd concur that this is most definitely a bug in any application - if a file can't be written for some reason, it's an error, and your script should be halted or notified.
--
Matt Deatherage <email@hidden>
GCSF, Incorporated <http://www.macjournals.com>
I love spam that offers to renovate my "residence at PO BOX 1021!"
_______________________________________________
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