Re: Is there any way to simplify this?
Re: Is there any way to simplify this?
- Subject: Re: Is there any way to simplify this?
- From: Michelle Steiner <email@hidden>
- Date: Fri, 19 Jan 2001 23:36:09 -0800
On 1/19/01 11:10 PM, Cal <email@hidden> wrote:
>
Well...it depends on whether you want the "choose folder" to pop up
>
in the Finder's execution layer, instead of in the execution layer
>
where the script is running. If so, you can put the tell block
>
around the try block:
Well, it's going to run from an applet, so I don't see any need to call
it within a tell wrapper.
But your solution still has the " set thefilelist to ..." line typed
twice, which is what I was trying to avoid.
>
As an aside, Michelle, this seems a little off to me, making the
>
assumption that *any* error you would get would require the user to
>
choose a folder.
The only recoverable error is if the target folder is not defined; the
purpose of doing it this was is so I don't have to hard-code the target
folder's location into the script. Once the folder is chosen, I had it
stored in a property, but with Paul's suggestion, it's now stored an
implied global variable.
Frankly, I can't see anything else that would return an error other than
the folder being undefined, and that should happen only the first time
the script is run.
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | Hard as it may be to believe, my |
| email@hidden | life has been based on a true story. |
----------------------------------------------------------------------