[B-Greek] Re: File/Folder Checking

Joseph Weaks j.weaks at tcu.edu
Sun Mar 7 22:24:33 EST 2004


 From Applescript dictionary:

exists : Verify if an object exists
	exists  reference -- the object in question
	Result : boolean -- true if it exists, false if not

So, something like:

set existBoolean to checkPath("Archives:Backup:")

on checkPath(thePath)
	tell application "Finder"
		if (item thePath) exists then return true
	end tell
end checkPath


On Mar 7, 2004, at 8:52 PM, Cory Loken wrote:

> How would one check to verify that a file or folder exists at a 
> specific location? This seems like it would be a simple thing, but I 
> can't find any documentation on this subject.
>
> Thanks for any suggestions.
>
> Cory Loken
> _______________________________________________
> applescript-studio mailing list | applescript-studio at lists.apple.com
> Help/Unsubscribe/Archives: 
> http://www.lists.apple.com/mailman/listinfo/applescript-studio
> Do not post admin requests to the list. They will be ignored.
>




More information about the B-Greek mailing list