Re: Error trap if item cannot be made into an integer?
Re: Error trap if item cannot be made into an integer?
- Subject: Re: Error trap if item cannot be made into an integer?
- From: Andy Wylie <email@hidden>
- Date: Tue, 19 Nov 2002 18:16:26 +1300
on Mon, 18 Nov 2002 17:12:42 -0600 Kenton Muschenheim wrote:
>
I'm looping through items in a list and I want to skip the item if the item
>
name can't be made into an integer. What's the syntax to trap the "Can't
>
make into an integer" error?
try
"item" as integer
on error m number n
display dialog {n, m} as string
end try
_____________________________ Andy
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.