QXP file paths v. names
QXP file paths v. names
- Subject: QXP file paths v. names
- From: Shane Stanley <email@hidden>
- Date: Sat, 05 May 2001 00:22:55 +1000
On 3/5/01 11:30 PM +1000, Simeon Johnston, email@hidden, wrote:
>
This is the section of the script that deals with the names.
>
>
set theListOfPictureBoxesWithImages to the reverse of
>
theListOfPictureBoxesWithImages
>
repeat with i from 1 to the number of items of theListOfPictureBoxesWithImages
>
try
>
set theImagePath to (get file path of image 1 of (item i of
>
theListOfPictureBoxesWithImages))
>
set theImageName to my nameOf(theImagePath)
>
on error -- image is a pasted PICT
>
set theImageName to "Pasted PICT"
>
end try
>
>
As you can see I already have "file path". Is this the only way to do this?
>
What else can
>
I do to get the full path of files?
You're getting the file path, but then you're calling a handler called
nameOf that is presumably converting to name only. Just change "set
theImagePath to..." to "set theImageName to...", and cut out the line after
it.
--
Shane Stanley, email@hidden