Re: Booleans in AS
Re: Booleans in AS
- Subject: Re: Booleans in AS
- From: Olivier Destrebecq <email@hidden>
- Date: Wed, 6 Mar 2002 10:24:40 -0600
if not (folder "output" of folder myPath exists) then
make new folder at folder myPath with properties {name:2output2}
end if
olivier
On Wednesday, March 6, 2002, at 08:46 AM, Emmanuel wrote:
>
At 2:40 AM +0100 6/3/02, Christopher Coulon wrote:
>
>
>
> I got AS to work in an embedded script in Object-Image running in
>
> Classic
>
> mode -- thank you Michelle! My script cerates a folder called
>
> "output" and
>
> gets a list of the text files in a folder for batch processing.
>
> However, if
>
> that folder named "output" already exists, the script fails. How do I
>
> put
>
> in a test for the existence of that folder?
>
>
>
> currently the script reads:
>
>
>
> make new folder at folder myPath with properties {name:2output2}
>
>
>
> And I get an error if that folder already exists.
>
>
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.
>
>
Emmanuel
>
_______________________________________________
>
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.
_______________________________________________
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.