• 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
Exists statements
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Exists statements


  • Subject: Exists statements
  • From: email@hidden
  • Date: Tue, 22 Oct 2002 10:54:26 -0400

I'm writing a script that needs to determine if a certain file exists or
not. I need to have it perform an action only if the file does not exist.
This is where I'm running into problems. The code I have so far is:

tell application "Finder"
if {file "dpath" of folder "preferences" of folder "system folder" of
startup disk exists} is "false" then choose folder with prompt "Locate data
Folder"

What needs to happen is a prompt that will direct the user to locate a
certain folder if the file does not exist. And then I need to copy the
location of the selected folder to the clipboard for future pasting. Thank
you
_______________________________________________
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.

  • Follow-Ups:
    • Re: Exists statements
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Recording in the script editor - Jaguar
  • Next by Date: RE: Exists statements
  • Previous by thread: Re: User Name in OS X +
  • Next by thread: Re: Exists statements
  • Index(es):
    • Date
    • Thread