Re: Determining If a File Exists
Re: Determining If a File Exists
- Subject: Re: Determining If a File Exists
- From: Rob Jorgensen <email@hidden>
- Date: Thu, 11 Mar 2004 11:54:39 -0500
At 9:25 AM -0700 3/11/04, Marconi wrote:
Here's a snippet:
set fileName to name of the item_info
set OldFile to (targetFolder & fileName) as text
if file OldFile exists then
display dialog OldFile & " already exists."
end if
targetFolder is the path to a folder, so oldFile is a full path to a
particular file (that may be) in the folder.
Have you tried wrapping the code in a Finder tell block?
-- Rob
_______________________________________________
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.