Booleans in AS
Booleans in AS
- Subject: Booleans in AS
- From: Christopher Coulon <email@hidden>
- Date: Tue, 05 Mar 2002 17:40:23 -0800
Hello all,
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.
What I want in pseudocode would be:
if a folder named 3output2 exists in myPath then select folder 3output2 in
folder myPath
delete selection
else
make new folder at folder myPath with properties {name:2output2}
What would the real code be to do this in AS?
Thanks in advance,
Chris
***************************************
The GAIA Group
Global Automated Image Analysis
We welcome image analysis problems in all fields.
www.theGAIAgroup.org
Christopher Coulon, Ph.D., Founder
email@hidden
***************************************
_______________________________________________
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.