RE: How can i do? ..... release 2
RE: How can i do? ..... release 2
- Subject: RE: How can i do? ..... release 2
- From: Joe Kelly <email@hidden>
- Date: Sat, 5 Jan 2002 11:01:40 -0800
tell application "Finder"
if file "HardDisk:readme.rtf" exists then -- need "file" in front of
the path string
-- do something
end if
end tell
>
-----Original Message-----
>
From: rhyme [mailto:email@hidden]
>
Sent: Saturday, January 05, 2002 3:17 AM
>
To: AppleScriptUsers
>
Subject: Re: How can i do? ..... release 2
>
>
>
It doesn't work !!
>
it give me a key form error ??
>
why ?
>
>
> Da: "Sandeep Waghmode" <email@hidden>
>
> Organizzazione: Tata Elxsi
>
> Data: Fri, 04 Jan 2002 16:46:57 +0530
>
> A: AppleScriptUsers <email@hidden>
>
> Oggetto: Re: How can i do? ..... release 2
>
>
>
> You can use a code like this one:
>
>
>
> tell application "Finder"
>
> if "CompletePathNameOf theFileToBeSearched" exists then
>
> <Do what you want>
>
> end if
>
> end tell
>
>
>
> Eg:
>
> tell application "Finder"
>
> if "HardDisk:readme.rtf" exists then
>
> Display Dialog "File Exists"
>
> end if
>
> end tell
>
>
>
> Sandeep
>
>
>
>
>
> rhyme wrote:
>
>
>
>> How can i ask Finder if exist a file in a directory ??
>
>> _______________________________________________
>
>> 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.
>
_______________________________________________
>
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.