Re: 'File permission error' - discussion, question about the parsing..
Re: 'File permission error' - discussion, question about the parsing..
- Subject: Re: 'File permission error' - discussion, question about the parsing..
- From: John Stewart <email@hidden>
- Date: Mon, 4 Apr 2005 19:30:32 -0400
On 04/04/05 at -0500 Jim Witte said this
>John Stewart said to just wrap the "set volume adjustment of every
>track of playlist to 0" in a try block, which would ignore ALL errors.
>But your idea is a good one. If I get the scholarship to the WWDC this
>year, I'll have to mention it to one of the AScript people (although
>I'm certain there are people on the list who are more
>well-connected...)
If you have an post of mine that says anything remotely like the paragraph above I'd like to see it. I believe you have either misquoted me or are attributing something to me I've not said.
If you are referring to my last post in this thread then you are indeed misquoting and I suggest you re-read my post because I specifically stated it was not a good idea to ignore all errors!
Just to make it easy here's the complete text of that post. Please pay particular attention to the last paragraph.
> Try blocks are there specifically to handle this sort of thing. Why
> wouldn't you want to use error catching code to catch errors? For what
> it's worth Try blocks can also be used to "ignore" errors by simply
> leaving out the "on error" portion.
>
> Try this in your script editor
>
> set a to 1 / 0 -- generate an error
>
> then try this and note the difference
>
> try
> set a to 1 / 0 -- generate an error end try
> end try
>
> I wouldn't recommend doing this as it will ignore all errors not just the
> one you intend to ignore, that may cause you other problems. It's much
> wiser to examine the error before ignoring it.
If you are going to attribute something to someone, keep it in context and keep it accurate!
JBS
--
Get a new car for your spouse. It'll be a great trade!
_______________________________________________
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