Re: applescript-users digest, Vol 3 #539 - 9 msgs
Re: applescript-users digest, Vol 3 #539 - 9 msgs
- Subject: Re: applescript-users digest, Vol 3 #539 - 9 msgs
- From: "Kerry V. Magruder" <email@hidden>
- Date: Wed, 12 Jun 2002 10:48:26 -0500
Hi everyone,
I'm brand new to Applescript, and am learning it under OS X. Many of
the things I'm learning from older documentation are confusing, of
course, because I'm not able to keep straight what works differently
with OS X (eg, aliases and path to). I'm writing a script to transfer
images from a designated "new-pics" folder to an appropriate folder in
an images archive on a mounted volume (the appropriate folder for an
image is determined from period, name and date data in a FileMaker
database; this data is also saved within each image file in Photoshop 7
before it is saved). When an image is saved and I'm ready to move it to
the archives, I can't make the following handler work to first check to
see if an image of the same name already exists. Can someone point out
what I'm doing wrong? It's probably really obvious, I'm sure. Thanks!
(At this point, variables such as DateFolder, NameFolder, imagePeriod,
and fileName have already been set, retrieved from FileMaker.)
tell application "Finder"
....
set thisFile to (fileName of folder DateFolder of folder NameFolder
of folder imagePeriod of folder "imageArchives" of disk "Images Hard
Drive")
if FileExists(thisFile) is false then...
end if
....
end tell
on FileExists(someFile)
try
get (someFile as text) as alias
return true
on error
return false
end
end
PEACE
Kerry
-------------
Dr. Kerry V. Magruder
History of Science Collections (BL 521)
Adjunct Assistant Prof, History of Science Dept.
University of Oklahoma
401 West Brooks, Room 521
Norman, OK 73019-0528
Voice: 405/325-2741
Fax: 405/325-7618
Email: email@hidden
http://libraries.ou.edu/depts/HistScience/
_______________________________________________
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.