Re: applescript-users digest, Vol 2 #642 - 13 msgs
Re: applescript-users digest, Vol 2 #642 - 13 msgs
- Subject: Re: applescript-users digest, Vol 2 #642 - 13 msgs
- From: Simeon Johnston <email@hidden>
- Date: Thu, 03 May 2001 08:30:03 -0500
- Organization: Electronic Easel
>
On 2/5/01 6:23 AM +1000, Simeon Johnston, email@hidden, wrote:
>
>
> I redid/stole/modified a script for Quark. This script gets the name of
>
> images and puts them in a text box under the picture box. I am
>
> wondering how I would go about getting the full path of the image and
>
> putting that in the text box.
>
>
Instead of getting the "name" property of the image, get the "file path"
>
property, and coerce it to text ("as text").
>
>
--
>
Shane Stanley, email@hidden
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?
sim