[B-Greek] Re: File/Folder Checking -- oops, sorry
Joseph Weaks
j.weaks at tcu.edu
Sun Mar 7 23:16:18 EST 2004
Ugh, wrong list... my apologies.
On Mar 7, 2004, at 9:24 PM, Joseph Weaks wrote:
> 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.
>>
>
> ---
> B-Greek home page: http://metalab.unc.edu/bgreek
> B-Greek mailing list
> B-Greek at lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/b-greek
>
More information about the B-Greek
mailing list