• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Booleans in AS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Booleans in AS
      • From: Dave Balderstone <email@hidden>
    • Re: Booleans in AS
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: Now is: Finder tell block (using >1 handler)
  • Next by Date: Re: Finder Tell Blocks
  • Previous by thread: Re: Now is: Finder tell block (using >1 handler)
  • Next by thread: Re: Booleans in AS
  • Index(es):
    • Date
    • Thread