Re: Checking if a folder exists and dealing with it
Re: Checking if a folder exists and dealing with it
- Subject: Re: Checking if a folder exists and dealing with it
- From: has <email@hidden>
- Date: Thu, 5 Dec 2002 13:44:34 +0000
Thomas wrote:
Another solution without "try" block using the "exists" command
This is neater.
if (folder "Templates" of folder (aFolder as string) exists) is false then
This line can be simplified*:
if not (folder "Templates" of aFolder exists) then
has
* The extra 'folder' keyword and 'as string' coercion aren't
necessary since aFolder is already a folder reference. 'As string'
could also cause problems with foreign characters now the filesystem
uses unicode.
--
--
http://www.barple.pwp.blueyonder.co.uk -- The Little Page of AppleScripts
_______________________________________________
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.