• 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
Alter Script for OSX
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Alter Script for OSX


  • Subject: Alter Script for OSX
  • From: Simon Manning <email@hidden>
  • Date: Mon, 26 Apr 2004 15:08:35 +0100

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.


  • Prev by Date: Re: auto backup Applescript?
  • Next by Date: mount volume errors
  • Previous by thread: Re: auto backup Applescript?
  • Next by thread: Re: Alter Script for OSX
  • Index(es):
    • Date
    • Thread