• 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
QXP file paths v. names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: applescript-users digest, Vol 2 #642 - 13 msgs (From: Simeon Johnston <email@hidden>)

  • Prev by Date: Re: Determing the Size of a File
  • Next by Date: Re: Determing the Size of a File
  • Previous by thread: Re: Getting full path of files...
  • Next by thread: MacOS9.1, URL Access Scripting and FTP Uploads
  • Index(es):
    • Date
    • Thread