Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: misleading Quark picture box



Hello Will,

Every picturebox has a "image 1", so ask image 1 for it's properties.

So try this piece of code:
tell picture box 1
if file path of image 1 is not null then
log ("do something")
else
log ("no picture")
end if
end tell

I'he tested it with Quark 6, but it should work also with 4.1



Best regards
Michael Slomski

---
Computerkartographie M. Slomski
Kartographie Systemberatung & Betreuung
f|r Apple Macintosh


Schnorr-von-Carolsfeld-Str. 19
D-81927 M|nchen

Tel.: ++49 +89-929 40 57 oder ++49 +177-44 57 990
Fax.: ++49 +89-939 311 71
Email: email@hidden





> Von: "Wallace, William" <email@hidden>
> Datum: Wed, 26 Nov 2003 11:45:11 -0600
> An: <email@hidden>
> Betreff: misleading Quark picture box
>
> In Quark 4.11, AS 1.8.3, MacOS 9.2.2, a script which has identified a generic
> box as having picture content will return true for the following:
>
>
> tell application "QuarkXPress(tm) 4.11"
> tell document 1
> tell picture box 1
> if image 1 exists
> --do some stuff
> end if
> end tell
> end tell
> end tell
>
> this happens whether the picture box actually has a picture in it or not! Is
> there a way to test reliably if a picture box actually contains a picture?
>
> B!ll
> _______________________________________________
> applescript-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/applescript-users
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.