Exists statements
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.