• 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
Quark not returning picture name or path properly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Quark not returning picture name or path properly


  • Subject: Quark not returning picture name or path properly
  • From: "Wadson, David" <email@hidden>
  • Date: Fri, 20 Jul 2001 10:42:51 -0400

Ok, I'll post this one to the list before I go out of my mind. Quark is
really ticking me off with this one. I'm trying to get the filepath or name
of photos that have been placed in picture boxes but for some darn reason it
won't give me the proper info. When I run this script, instead of the file
path I just get the name of the file. When I change "file path" to "name" -
I get nothing, instead of the name of the file. I've had this code working
before but it won't work now. Driving me nuts. My first thought was that
perhaps AppleScript's text item delimiters had gotten changed but that makes
no difference. I have a similar script that was working before but when I
ask it for the file path of images, I just get the name of the drive and the
file as that path - none of the folders in between! Aaaaaarrrrggggh. Is
there some sort of glitch/bug/bad code/corrupted preference that could be
causing this?

tell application "QuarkXPress"
tell front document
set allPictureBoxes to the object reference of every picture box
whose bounds of image 1 of it is not {0, 0, 0, 0}
if allPictureBoxes is not list then
copy (coerce allPictureBoxes to list) to allPictureBoxes
end if
repeat with currentPictureBox in allPictureBoxes
set imagePath to (file path of image 1 of currentPictureBox)
display dialog imagePath
end repeat
end tell
end tell




David Wadson - Graphics Coordinator
The Chronicle-Journal
807-343-6264
email@hidden
www.chroniclejournal.com


  • Follow-Ups:
    • Re: Quark not returning picture name or path properly
      • From: Hans Haesler <email@hidden>
  • Prev by Date: Desktop folder
  • Next by Date: Re: Empty trash with locked items
  • Previous by thread: Re: Desktop folder
  • Next by thread: Re: Quark not returning picture name or path properly
  • Index(es):
    • Date
    • Thread