Re: Script Objects in Libraries
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.