Re: Booleans in AS
Re: Booleans in AS
- Subject: Re: Booleans in AS
- From: Ed Stockly <email@hidden>
- Date: Wed, 6 Mar 2002 09:12:57 -0800
the script reads:
make new folder at folder myPath with properties {name:2output2}
And I get an error if that folder already exists.
>
> Emmanuel >>Isn't that a test? In AppleScript, an error is not a
mistake ... You can
trap it and handle it, so you may use it as a test.
Not in this case. With this command if a folder or a file exists with
that name an untrapable error results and a dialog is displayed in the
user interface. If the finder is not frontmost is appears in the
background and sometimes locks things up so solidly you've got to do a
force quit.<grrrrr>
To resolve this your script should make sure that no item exists in that
directory with that name. It's also a good idea to make sure the name
is less than 31 characters to avoid another potential untrapable user
interface error dialog.
ES
_______________________________________________
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.