• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting full path of files...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting full path of files...


  • Subject: Re: Getting full path of files...
  • From: Simeon Johnston <email@hidden>
  • Date: Thu, 03 May 2001 14:29:22 -0500
  • Organization: Electronic Easel

Sorry about the last post. I forgot to change the subject line.

> 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


  • Prev by Date: Re: Determing the Size of a File
  • Next by Date: Re: "[AS]" on subject line?
  • Previous by thread: Re: Getting full path of files...
  • Next by thread: Mac OS X and Classic problem
  • Index(es):
    • Date
    • Thread