I don't know why that is happening, but a simple workaround would be
to consolidate all routines into a single script document, like this:
global glbvar
on open(thefiles)
--do something here
end open
on routine_1(variable1, variable2)
--do somthing here
end routine_1
on routine_2()
--do something here
end routine_2
On Jun 23, 5:59 pm, "Rebecca O'Connell" <[email protected]> wrote:
> I have a script that uses global variables to pass information to a
> subroutine. The script works perfectly when I run it from Script Editor
> using files selected in the Finder, but when I wrap it in "on open" tags and
> run it as a Quicksilver action, I get variable not defined errors for
> global variables set in the parent script and used in the loaded subroutine.
> Does anyone know why this is happening and how I can work around it?
>
> Thank you,
> Rebecca