Mailing Lists: Apple Mailing Lists

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

How to pass a variable from one .applescript to another in same app



I am working on a project that from the main nib, one chooses what they
want to do and based off the choice (from a pull down menu) another nib loads.
Because there is still some interaction needed from the user I needed to add
another .applescript to the project so that the on clicked theObject event
handler in this script could deal with the buttons on the new nib (as opposed
to trying to differenciate between the main nib..or maybe this is where I am
going wrong). My quesion is that the choices on the pulldown menu of
the main nib are unix commands and I would like to be able to pass the choice
made from the pulldown menu as a variable to the new nib which uses a
completely new .applescript....how do I pass the variable that stores the
choice made from the pull down menu to the new script so that it can add flags
to and finish off the rest of the command and then run the whole command from
the new nib file (will have to do so via do shell script I know)? My only
solution has been to write it out to a file inside the application and then
read it in but that's not the ideal solution.
Thanks.

Aaron
_______________________________________________
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.