• 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
Re: Booleans in AS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Booleans in AS


  • Subject: Re: Booleans in AS
  • From: Emmanuel <email@hidden>
  • Date: Wed, 6 Mar 2002 15:46:45 +0100

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.

  • Follow-Ups:
    • Re: Booleans in AS
      • From: Olivier Destrebecq <email@hidden>
References: 
 >Booleans in AS (From: Christopher Coulon <email@hidden>)

  • Prev by Date: Re: can't set path of original of alias file?
  • Next by Date: Re: Finder Tell Blocks
  • Previous by thread: Booleans in AS
  • Next by thread: Re: Booleans in AS
  • Index(es):
    • Date
    • Thread