• 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: How can i do? ..... release 2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Congrats!!! Bill Briggs MacWorld OS X AppleScript Article
  • Next by Date: Re: Sending Info over the web to a Mac.
  • Previous by thread: Re: How can i do? ..... release 2
  • Next by thread: Re: A problem when reading/writing to a text file
  • Index(es):
    • Date
    • Thread