Mailing Lists: Apple Mailing Lists

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

Vars/routines across different files



Hi all,

Can you use variables and routines across different Applescript files?
Couldn't find a way in the documentation, but I'm probably overlooking
something being a newbie switcher from regular AS to Studio.

The construction I'd like to get to work is:

first file: main.applescript

property x: 5

on clicked theObject
test()
end clicked

second file: sub.applescript

on test()
display dialog x
end

Is this possible?

Thanks, Wim


-----
email (home): email@hidden
email (office): email@hidden
http://www.noorderlicht.com * Noorderlicht photofestival
_______________________________________________
applescript-studio mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-studio
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.