• 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: Checking if a folder exists and dealing with it
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking if a folder exists and dealing with it


  • Subject: Re: Checking if a folder exists and dealing with it
  • From: Thomas <email@hidden>
  • Date: Wed, 4 Dec 2002 18:37:46 +0100

Another solution without "try" block using the "exists" command :

set theFolders to every folder of ShortFoundTemplateMatches
repeat with aFolder in theFolders
if (folder "Templates" of folder (aFolder as string) exists)
is false then
make new folder at aFolder with properties {name:"Templates"}
end if
end repeat

Thomas

Mr Tea wrote :

> set theFolders to every folder of ShortFoundTemplateMatches
> repeat with aFolder in theFolders
> try
> make new folder at aFolder with properties {name:"Templates"}
> end try
> end repeat
_______________________________________________
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.

References: 
 >Re: Checking if a folder exists and dealing with it (From: Mr Tea <email@hidden>)

  • Prev by Date: Re: Checking if a folder exists and dealing with it
  • Next by Date: Unexpected Quit accessing FMP in OS X
  • Previous by thread: Re: Checking if a folder exists and dealing with it
  • Next by thread: Re: Checking if a folder exists and dealing with it
  • Index(es):
    • Date
    • Thread