• 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
Re: Script Objects in Libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script Objects in Libraries


  • Subject: Re: Script Objects in Libraries
  • From: Hans Haesler <email@hidden>
  • Date: Thu, 8 Jul 2004 22:58:47 +0200

On Thu, 08 Jul 2004, Jason Bourque wrote:

>I have a QuarkXPress handler in a library that that calls
>a script object in that same library. I get an error every time.
>-->> Error: The variable checkSpreads is not defined.

Hello Jason,

a script object must be defined _before_ it is called
from a handler. Just switch the order:
---
script checkSpreads
display dialog "Success"
end script

tell me to srhandler()

on srhandler()
tell application "QuarkXPress 6.1"
activate
do script {checkSpreads}
end tell
end srhandler
---
The 'activate' makes sure that the dialog is shown
in front.

Regards,
Hans

---
Hans Haesler <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.


  • Follow-Ups:
    • Re: Script Objects in Libraries
      • From: Jason Bourque <email@hidden>
References: 
 >Characters in a file name - some progress (From: Oz Springs <email@hidden>)
 >Script Objects in Libraries (From: Jason Bourque <email@hidden>)

  • Prev by Date: Re: Sorting a list of Lists
  • Next by Date: Re: Changing screen resolutions - updated
  • Previous by thread: Script Objects in Libraries
  • Next by thread: Re: Script Objects in Libraries
  • Index(es):
    • Date
    • Thread