Mailing Lists: Apple Mailing Lists

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

Alter Script for OSX



Hi All,

I am inexperienced in AS to say the least...
We have been using scripts on OS9 but we are upgrading to OSX. I have an
example of one which no longer works due to (Im guessing) something that
has changed in AS between OS9 and OSX.

------------------------------------------------------------------------------------
my SetPictureBoxContent (i, "footerlogo", FooterLogo) - FooterLogo is a
path to an image on a server, i is just a count

on SetPictureBoxContent(ThePage, BoxName, LogoPath)
tell application "QuarkXPress"
tell document1
tell page(ThePage as number)
set image 1 of picture box BoxName to
LogoPath
end tell
end tell
end tell
end SetPictureBoxContent
------------------------------------------------------------------------------------

"set image 1 of picture box BoxName to LogoPath" - this line gives an
Applescript error: "QuarkXPress got an error: Can't make some data into
the expected type", which suggests to me a casting issue.

I had a previous problem with a clipboard not holding a value and it was
just a case of adding "as text" to the end of a line (typecasting it into
the clipboard) so Im hoping this will be just as easy for you experts.

PS. If you need more info then I will supply it.

Any help would be appreciated kindly.

Best regards,

Simon Manning
Systems Developer
Information Management
Cambridge University Press
University Printing House
Cambridge CB2 2RU
Tel: + 44 (0)1223 325132 (direct)
Email: email@hidden
_______________________________________________
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.