Another tedious newbie question
Another tedious newbie question
- Subject: Another tedious newbie question
- From: Christopher Coulon <email@hidden>
- Date: Mon, 08 Apr 2002 15:54:50 -0700
Sorry for the simple question, but I did spend some time unsuccessfully
trying to get the answer.
I am experimenting with AppleScript Studio and am programming a button to
start a search for an image. I use the script:
try
someFile as alias
on error
set someFile to choose file
end try
Which essentially gives me what I want, i.e., someFile is the file selected
and its path.
My question: how do I separate the file (a tiff image) from its path? I
want to get the file's name and use the path to store results from
processing the image, so I would like one variable to contain the file's
name and another to be the path to the file's folder. However, I don't want
the user to do more than one search to get both pieces of information.
Thanks in advance,
Chris
***************************************
The GAIA Group
Global Automated Image Analysis
We welcome image analysis problems in all fields.
www.theGAIAgroup.org
Christopher Coulon, Ph.D., Founder
email@hidden
***************************************
_______________________________________________
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.