• 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: 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.

  • Follow-Ups:
    • Re: Booleans in AS
      • From: Andy Wylie <email@hidden>
References: 
 >Re: Booleans in AS (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Invisible comments (was: Re: Finder Tell Blocks)
  • Next by Date: Re: Booleans in AS
  • Previous by thread: Re: Booleans in AS
  • Next by thread: Re: Booleans in AS
  • Index(es):
    • Date
    • Thread